Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding NSMatrix's NSImageCells to an NSArrayController



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.