• 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: Changing default button cell in Cocoa Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing default button cell in Cocoa Application


  • Subject: Re: Changing default button cell in Cocoa Application
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 22 Jul 2009 03:08:57 -0700

On Jul 21, 2009, at 8:43 AM, Kerms Technical Services <email@hidden> wrote:

I have a window "winUser" with two buttons "bntEnter" and "bntBuild". I am trying to switch the "default button" between the two as the program progresses.

Seems like a bad UI design to me. I don't know if I would expect key equivalents to change. On a sheet, for example, Return is always OK (or equivalent) even if further action is required on the sheet before OK is enabled. Cancel never gets the Return key equivalent.


Style criticisms: prefixing your variables with "win" and "btn" is bad form. "enterButton" is more meaningful than "btnEnter." You should be referencing objects through your accessors (e.g. [self enterButton]) rather than using instance variables. They also aren't "handlers."

--Kyle Sluder
_______________________________________________

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


References: 
 >Changing default button cell in Cocoa Application (From: Kerms Technical Services <email@hidden>)

  • Prev by Date: Re: Found Re: List FAQ and Cocoa learning resources
  • Next by Date: Re: Recording phone calls
  • Previous by thread: Changing default button cell in Cocoa Application
  • Next by thread: Re: Changing default button cell in Cocoa Application
  • Index(es):
    • Date
    • Thread