• 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
bind image to NSButtoncells in NSMatrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Help on subclassing
  • Next by Date: Re: Is Apple's singleton sample code correct?
  • Previous by thread: Re: Drawing a rectangular matrix of circles - an NSMatrix?
  • Next by thread: Re: Two applications, one preference file
  • Index(es):
    • Date
    • Thread