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:
richard 2000-10-31 12:47:09 +00:00
parent 2612cc04bd
commit 00418ee526
8 changed files with 61 additions and 32 deletions

View file

@ -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;