Binding NSMatrix's NSImageCells to an NSArrayController
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