• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Attributes set in NSTextStorage ignored/overridden
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Attributes set in NSTextStorage ignored/overridden (From: Dale Miller <email@hidden>)

  • Prev by Date: Attributes set in NSTextStorage ignored/overridden
  • Next by Date: Re:Attributes set in NSTextStorage ignored/overridden (solved)
  • Previous by thread: Attributes set in NSTextStorage ignored/overridden
  • Next by thread: Re:Attributes set in NSTextStorage ignored/overridden
  • Index(es):
    • Date
    • Thread