• 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: Getting an NSAttributedString from NSData/NSTextView using Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Getting an NSAttributedString from NSData/NSTextView using Core Data (From: "Hans Kuder" <email@hidden>)

  • Prev by Date: NSTextFieldCell derivate and editing (editWithFrame)
  • Next by Date: Re: NSMutableAttributedString initWithHTML / initWithData trouble
  • Previous by thread: Getting an NSAttributedString from NSData/NSTextView using Core Data
  • Next by thread: How to loop until kill command sent?
  • Index(es):
    • Date
    • Thread