• 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
Re: Dynamically change button cell image within a table view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@



 _______________________________________________
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

  • Follow-Ups:
    • Re: Dynamically change button cell image within a table view
      • From: Andrew Thomson <email@hidden>
References: 
 >Dynamically change button cell image within a table view (From: Andrew Thomson <email@hidden>)
 >Re: Dynamically change button cell image within a table view (From: Philip Aker <email@hidden>)
 >Re: Dynamically change button cell image within a table view (From: Andrew Thomson <email@hidden>)

  • Prev by Date: Re: fast find files?
  • Next by Date: Re: Broken date math on AppleScript 2.0
  • Previous by thread: Re: Dynamically change button cell image within a table view
  • Next by thread: Re: Dynamically change button cell image within a table view
  • Index(es):
    • Date
    • Thread