• 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: How to get buttonType from NSButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get buttonType from NSButton


  • Subject: Re: How to get buttonType from NSButton
  • From: mmalcolm crawford <email@hidden>
  • Date: Tue, 16 May 2006 09:48:07 -0700


On May 16, 2006, at 2:34 AM, RameshPVK wrote:

How to get the button type from NSButton. Example , I have created a button of type NSSwitchButton. What is the method to inspect the type on that button.

There isn't a way. 'setButtonType:' is a write-only value. The button type is set by configuring more than one attribute; you can only try to infer what type a button is by asking for the values of each of those attributes. Why do you need to know what type a button is?


mmalc

_______________________________________________
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


References: 
 >How to get buttonType from NSButton (From: RameshPVK <email@hidden>)

  • Prev by Date: Re: NSTableView / NSArrayController drag and drop
  • Next by Date: Re: Programmatically adding objects to an ArrayController
  • Previous by thread: How to get buttonType from NSButton
  • Next by thread: Re: How to get buttonType from NSButton
  • Index(es):
    • Date
    • Thread