[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r109649: * nsfont.m (ns_ascii_average
From: |
Alp Aker |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r109649: * nsfont.m (ns_ascii_average_width): Send initWithFormat selector |
Date: |
Fri, 17 Aug 2012 00:12:50 -0400 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 109649
committer: Alp Aker <address@hidden>
branch nick: trunk
timestamp: Fri 2012-08-17 00:12:50 -0400
message:
* nsfont.m (ns_ascii_average_width): Send initWithFormat selector
to an allocated instance of NSString, not to the class itself.
modified:
src/ChangeLog
src/nsfont.m
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2012-08-17 01:53:29 +0000
+++ b/src/ChangeLog 2012-08-17 04:12:50 +0000
@@ -1,3 +1,8 @@
+2012-08-17 Alp Aker <address@hidden>
+
+ * nsfont.m (ns_ascii_average_width): Send initWithFormat selector
+ to an allocated instance of NSString, not to the class itself.
+
2012-08-17 Juanma Barranquero <address@hidden>
* makefile.w32-in (C_CTYPE_H): New macro.
=== modified file 'src/nsfont.m'
--- a/src/nsfont.m 2012-08-16 06:40:57 +0000
+++ b/src/nsfont.m 2012-08-17 04:12:50 +0000
@@ -275,7 +275,7 @@
for (ch = 0; ch < 95; ch++)
chars[ch] = ' ' + ch;
- ascii_printable = [NSString initWithFormat: @"%s", chars];
+ ascii_printable = [[NSString alloc] initWithFormat: @"%s", chars];
}
#ifdef NS_IMPL_COCOA
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r109649: * nsfont.m (ns_ascii_average_width): Send initWithFormat selector,
Alp Aker <=