• 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
buttonType in NSButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

buttonType in NSButton


  • Subject: buttonType in NSButton
  • From: "Adam Lindsay" <email@hidden>
  • Date: Mon, 9 Dec 2002 00:33:22 +0000

Hi all.

I'm working on my first significant Cocoa project, and was wondering if
there's a programmatic way of discovering an NSButton's buttonType. I've
looked at NSButton, NSButtonCell, and NSAccessibility (briefly), and
nothing presents itself as the front door. I can *set* it, but I don't
want to do that.

I don't want to discover its _state_, either, since I'm looking for
different behavior from the NSMomentary*Buttons compared to the toggle-
like buttons (and I just discovered that the MomentaryButtons toggle
their "state" anyway, even though they appear stateless). And no, there's
absolutely no way of knowing what kind of button it is at the time I
write the code.

TIA,
adam

Sorry if I come off as defensive in a first post. I just want to pre-empt
the "why-do-ya-wanna-do-that-anyway" responses.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Adam Lindsay +44(0)1524 594 537
email@hidden
http://www.comp.lancs.ac.uk/computing/users/atl/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • RE: buttonType in NSButton
      • From: "Jonathan E. Jackel" <email@hidden>
  • Prev by Date: delaying processing mouse events
  • Next by Date: Re: delaying processing mouse events
  • Previous by thread: Re: delaying processing mouse events
  • Next by thread: RE: buttonType in NSButton
  • Index(es):
    • Date
    • Thread