Re: Attributes set in NSTextStorage ignored/overridden
Re: Attributes set in NSTextStorage ignored/overridden
- Subject: Re: Attributes set in NSTextStorage ignored/overridden
- From: Gideon King <email@hidden>
- Date: Tue, 30 Mar 2010 03:25:19 +1000
You've got your keys and values the wrong way around in your dictionary. The method name hints at this - object first, then key.
On 30/03/2010, at 3:12 AM, Dale Miller wrote:
> two attribute dictionaries:
> stext = [[NSDictionary alloc]initWithObjectsAndKeys:
> NSFontAttributeName,sfont,
> NSUnderlineStyleAttributeName,[NSNumber numberWithInt:NSUnderlineStyleNone],
> nil];
> btext = [[NSDictionary alloc]initWithObjectsAndKeys:
> NSFontAttributeName,bfont,
> NSUnderlineStyleAttributeName,[NSNumber numberWithInt:NSUnderlineStyleSingle],
> nil];
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden