Re: CoreData and NSAttributedString
Re: CoreData and NSAttributedString
- Subject: Re: CoreData and NSAttributedString
- From: "Sean McBride" <email@hidden>
- Date: Tue, 4 Dec 2007 13:38:35 -0500
- Organization: Rogue Research
On 12/4/07 7:25 PM, Kai Brüning said:
>I need to store NSAttributedStrings of small to medium size (max
>maybe 20 lines of text) in a CoreData store.
>
>My idea is to archive the attributed string and store the result as
>single binary data attribute. Is this reasonable? The typical
>approach? Other ways to handle it?
That's reasonable, and typical. If you can require 10.5, just use a
'transformable' property, since NSAttributedString conforms to NSCoding,
everything will magically work. See the Core Data docs for more.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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