RE: buttonType in NSButton
RE: buttonType in NSButton
- Subject: RE: buttonType in NSButton
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Mon, 9 Dec 2002 09:43:01 -0500
>
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.
>
How about asking the button for its class, e.g. [yourButton class] or
[yourButton className], or testing with isKindOfClass:? Check the NSObject
docs.
Jonathan
_______________________________________________
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.