Re: Getting an NSAttributedString from NSData/NSTextView using Core Data
Re: Getting an NSAttributedString from NSData/NSTextView using Core Data
- Subject: Re: Getting an NSAttributedString from NSData/NSTextView using Core Data
- From: Felix Franz <email@hidden>
- Date: Tue, 17 Jul 2007 10:23:21 +0200
On Jul 17, 2007, at 3:44 AM, Hans Kuder wrote:
Hi everyone,
I've got a Core Data app to which I'd like to add searching
functionality. I
have a class called MNode, which is a subclass of NSManagedObject.
An MNode
stores some of its data in an attribute called nodeData, which is
set to
"Binary data" in my object model and is bound to an NSTextView by
means of
NSUnarchiveFromData.
which binding are you using for your NSTextView? If you use 'data'
you don't
need an NSUnarchiveFromData-transformer, and your method should work.
Using
the transformer you first have to decode the data using
[NSKeyedUnarchive unarchiveObjectWithData:newData] or a like.
HTH, Cheers
felix
_______________________________________________
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