• 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: Displaying image and core data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying image and core data


  • Subject: Re: Displaying image and core data
  • From: Justin Burns <email@hidden>
  • Date: Wed, 16 Nov 2005 16:01:02 -0800

True. The method I suggested would use the Value binding.

Reading NSData right out of core data does seem like it would be more efficient, but the solution is not as immediately obvious to me.

Would you use [anImage TIFFRepresentation] to create your NSData for calling setValue:forKey on the Person controller? And then NSImageView's Data binding would work correctly?

-justinb


On Nov 16, 2005, at 3:16 PM, Scott Stevenson wrote:


On Nov 16, 2005, at 3:04 PM, Justin Burns wrote:

Have you tried setting NSUnarchiveFromData as your Value Transformer in the Data bindings pane?

It seems like this would do exactly what you need, assuming you generated your original data with something like:
[personalityController setValue:[NSArchiver archivedDataWithRootObject:anImage]; forKeyPath:@"selection.originalPicture"]

FWIW -- he said he was using a "data" binding for the image cell, in which case the contents should probably stay as NSData.


     - Scott

--
http://theocacao.com/


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40shipwreckbeads.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Displaying image and core data
      • From: Scott Stevenson <email@hidden>
References: 
 >Displaying image and core data (From: Kubernan from 10191 Technologies <email@hidden>)
 >Re: Displaying image and core data (From: Justin Burns <email@hidden>)
 >Re: Displaying image and core data (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Re: Capturing the stylus (ink input) in cocoa
  • Next by Date: Re: Hard linked files cannot be modified
  • Previous by thread: Re: Displaying image and core data
  • Next by thread: Re: Displaying image and core data
  • Index(es):
    • Date
    • Thread