• 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
Binding NSMatrix's NSImageCells to an NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding NSMatrix's NSImageCells to an NSArrayController


  • Subject: Binding NSMatrix's NSImageCells to an NSArrayController
  • From: Yann Bizeul <email@hidden>
  • Date: Sun, 6 May 2007 01:35:43 +0200

Hello list.

I have a NSArrayController with NSManagedObjects having a "image" key containing data (archived NSImage)

I'd like a NSMatrix to be bound to this, showing each image in a NSImageCell.

So I try to bind the "content" of NSMatrix to "MyArrayController" "arrangedObjects" "image" with "NSUnarchiveFromData"

All I get is

-[NSCFArray bytes]: selector not recognized [self = 0x16141bf0]

looks like it does not go deeper in the NSArray looking for each object.

I'm a bit lost of what I should bind to make this work, perhaps I have to bind the NSImageCell itself but I did not have much success with it, I tried to store raw TIFF data in it without success either.

No matter if I store a TIFF data or an archived NSImage, I still get errors.

Thanks for your help

Yann Bizeul - yann at tynsoe.org
Cocoa Developer

Tynsoe Projects
BuddyPop - GeekTool - SSH Tunnel Manager - ...
http://projects.tynsoe.org/


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Prev by Date: Re: Model change behind NSTreeController's back
  • Next by Date: Does Core Data have a serious problem?
  • Previous by thread: [NSDocument setPrintInfo:] question
  • Next by thread: Multiple Toolbars
  • Index(es):
    • Date
    • Thread