Re: Displaying image and core data
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