Re: Changing default button cell in Cocoa Application
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