Re: Dynamically change button cell image within a table view
Re: Dynamically change button cell image within a table view
- Subject: Re: Dynamically change button cell image within a table view
- From: Philip Aker <email@hidden>
- Date: Mon, 18 Feb 2008 04:15:29 -0800
On 2008-02-17, at 20:53:47, Andrew Thomson wrote: I would love it if you could point me to one? The ones I've found in the archive exhaustively cover image cells but next to nothing about setting the image of a button cell. The class reference for NSButtonCell mentions the setImage method but I can't find any examples specific to NSButtonCells and my implementation of the method doesn't yield any results (nor errors). Any help would be appreciated. --Andrew
I misread your post and was indeed thinking of image cells. Here's how to use setImage for a button cell in a table (for instance in 'will display cell'):
set img to load image "img2" call method "setImage:" of theCell with parameter img
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden