Re: NSForegroundColorAttributeName without AppKit
Re: NSForegroundColorAttributeName without AppKit
- Subject: Re: NSForegroundColorAttributeName without AppKit
- From: Graham Cox <email@hidden>
- Date: Tue, 2 Mar 2010 16:19:48 +1100
On 02/03/2010, at 4:00 PM, Ken Ferry wrote:
> When you use a symbol like NSForegroundColorAttributeName, a reference to the symbol is embedded in your binary, not the value. So it could possibly change.
>
> Barriers to this would be (1) people persisting attribute dictionaries,[...] (1) might, it's hard to say.
What about archiving an NSAttributedString to a file? Wouldn't the constant string get archived as its value? Then if the symbol changed there would be a mismatch between the archive and what the library would be expecting, and the saved object wouldn't work correctly.
--Graham
_______________________________________________
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