bind image to NSButtoncells in NSMatrix
bind image to NSButtoncells in NSMatrix
- Subject: bind image to NSButtoncells in NSMatrix
- From: Richard Salvatierra <email@hidden>
- Date: Thu, 1 Dec 2005 15:48:47 -0500
I have an archived NSImage stored in the managedObjectModel.
How do I bind the image data to the buttonCell.
I am able to bind the data but it writes it as a string (apparently)
I can't figure out how to Unarchive the image data. Thought this
would work but no luck:
options = [NSMutableDictionary new];
[options setObject: [NSValueTransformer
valueTransformerForName:@"NSUnarchiveFromData"]
forKey: @"NSValueTransformerBindingOption"];
[myMatrix bind: @"contentValues" toObject: arrayController
withKeyPath: @"arrangedObjects.attributes.thumbnail"
options: options];
Thank you for your help.
-Rich
_______________________________________________
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