• 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: Core Data Binding: Reading a binary image (TIFF) {part deux}
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Core Data Binding: Reading a binary image (TIFF) {part deux}
      • From: mmalcolm crawford <email@hidden>
    • Re: Core Data Binding: Reading a binary image (TIFF) {part deux}
      • From: Jeff LaMarche <email@hidden>
  • Prev by Date: Re: Scaled image in NSButtonCell flipped - drawInRect:
  • Next by Date: Re: Core Data Binding: Reading a binary image (TIFF) {part deux}
  • Previous by thread: Re: NSOutlineView misdrawing during drag
  • Next by thread: Re: Core Data Binding: Reading a binary image (TIFF) {part deux}
  • Index(es):
    • Date
    • Thread