mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 12:50:40 +00:00
Added some fixes for Apple runtime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7940 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2612cc04bd
commit
00418ee526
8 changed files with 61 additions and 32 deletions
|
@ -121,7 +121,7 @@ static NSString *attachmentString()
|
|||
- (NSDictionary*) fontAttributesInRange: (NSRange)range
|
||||
{
|
||||
NSDictionary *all;
|
||||
static SEL sel = @selector(objectForKey:);
|
||||
static SEL sel = 0;
|
||||
IMP objForKey;
|
||||
id objects[8];
|
||||
id keys[8];
|
||||
|
@ -135,6 +135,8 @@ static NSString *attachmentString()
|
|||
all = [self attributesAtIndex: range.location
|
||||
effectiveRange: &range];
|
||||
|
||||
if (sel == 0)
|
||||
sel = @selector(objectForKey:);
|
||||
objForKey = [all methodForSelector: sel];
|
||||
|
||||
keys[count] = NSFontAttributeName;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue