• 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: NSMatrix, NSImageCell and selection indicator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMatrix, NSImageCell and selection indicator


  • Subject: Re: NSMatrix, NSImageCell and selection indicator
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 18 Dec 2006 10:28:04 -0800
  • Thread-topic: NSMatrix, NSImageCell and selection indicator

On Sun, 17 Dec 2006 17:35:04 -0600, "David Holmes" <email@hidden>
said:
>I have an NSMatrix subclass that I am adding NSImageCells to at
>runtime. I am unable to find a way to indicate an image is selected
>when clicked on. I can get the selected cell through target and
>action, but have tried highlight, border, focus without success. I
>would just like the selected image to have some indication that it is
>selected. Any help would be appreciated.

Simply redraw the image in a manner that suggests selectedness. Or, use a
button cell instead of an image cell, if you want to take advantage of the
built-in redrawing. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



_______________________________________________

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Re: NSMatrix, NSImageCell and selection indicator
      • From: "David Holmes" <email@hidden>
  • Prev by Date: Re: Using bindings to make an NSPopupButton to assign an array filter predicate
  • Next by Date: Re: NsTableView and the form view.
  • Previous by thread: NSMatrix, NSImageCell and selection indicator
  • Next by thread: Re: Re: NSMatrix, NSImageCell and selection indicator
  • Index(es):
    • Date
    • Thread