• 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
NSButtonCell darkened when state is NSOnState
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSButtonCell darkened when state is NSOnState


  • Subject: NSButtonCell darkened when state is NSOnState
  • From: Stephan Burlot <email@hidden>
  • Date: Mon, 15 Nov 2004 22:20:04 +0100

Hi,

I have a NSMatrix of buttons with image.
The NSMatrix is set to radio mode in IB.
Buttons are set to Square button, and behavior to "Push On/Push Off"

I want that when a button is selected, the image appears darkened.

Using trial and error, I achieved good result when the button is clicked by setting:
[[cropButtonMatrix cellWithTag:0] setShowsStateBy:NSNoCellMask];
[[cropButtonMatrix cellWithTag:0] setHighlightsBy:NSNoCellMask];


But the state of the button is not shown when the mouse is released, i.e. nothing is drawn in the cell to show its state.
I have tried all the constants available for setShowStateBy without success.


What is the magical incantation to tell the NSButtonCell to display its image darkened when it's on?

Any ideas?

Stephan Burlot

_______________________________________________
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


  • Follow-Ups:
    • Re: NSButtonCell darkened when state is NSOnState [SOLVED]
      • From: Stephan Burlot <email@hidden>
    • Re: NSButtonCell darkened when state is NSOnState
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: RE: NSFontManager and convertFont
  • Next by Date: NSURLHandle, proxies
  • Previous by thread: Re: Focus ring changed
  • Next by thread: Re: NSButtonCell darkened when state is NSOnState
  • Index(es):
    • Date
    • Thread