Re: Core Data Binding: Reading a binary image (TIFF) {part deux}
Re: Core Data Binding: Reading a binary image (TIFF) {part deux}
- Subject: Re: Core Data Binding: Reading a binary image (TIFF) {part deux}
- From: "Frederick C. Lee" <email@hidden>
- Date: Wed, 4 Jan 2006 15:40:50 -0800
I compiled and reBind the NSImageView to the NSArrayController.
Here's the abridged entity diagram:
[REGION] ---->> [MAP]
Via the IB:
NSImageView binding:
value = selection.map[Region Array Controller(NSArrayController)]
What I got was the following runtime error upon selection:
2006-01-04 15:12:27.384 Global Village[1430] NSImageCell's object
value must be an NSImage.
I've tried to change the setImage of the following as a remedy:
- (void)awakeFromFetch {
NSData *imageData = [self valueForKey:@"imageData"];
if (imageData != nil) {
// [self setImage:[NSUnarchiver
unarchiveObjectWithData:imageData]];
[self setImage:[[NSImage alloc]initWithData:imageData]];
}
.... But explicitly setting 'image' to NSImage doesn't change the
outcome.
Any Ideas?
Ric.
_______________________________________________
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