• 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
Adding a new type of NSButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding a new type of NSButton


  • Subject: Adding a new type of NSButton
  • From: P Teeson <email@hidden>
  • Date: Wed, 25 Jun 2008 15:12:44 -0400

Environment is Mac OS X 10.4.11 Xcode 2.5

I need a new type of NSButton/NSButtonCell that I am calling an NSLatchButton.
Once it is pushed it stays pushed - pushing it again does not revert it back to unpushed state.
(Of course there would be a method to set it to it's unlatched state but pushing the button would not
invoke that action)


However I'm not sure how to approach this. Should I use categories, extensions, or subclass or what?

If I were dealing with the source code I would add to the button types enums
and add a method or case to deal with that type.


But what suggestions do you have?

TIA for your elegant wisdom.....

respect....

Peter


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Adding a new type of NSButton
      • From: Kevin Elliott <email@hidden>
    • Re: Adding a new type of NSButton
      • From: "I. Savant" <email@hidden>
    • Re: Adding a new type of NSButton
      • From: Marco Masser <email@hidden>
  • Prev by Date: Re: Xcode eats 100% CPU and more while typing
  • Next by Date: RE: Newbie question: error in creating a NSData object using handle(Resource Management)
  • Previous by thread: Re: [Q] Is there a NSPathController-like custom controllerl for pre-MacOS X 10.5?
  • Next by thread: Re: Adding a new type of NSButton
  • Index(es):
    • Date
    • Thread