buttonType in NSButton
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.