On Jul 21, 2009, at 8:43 AM, Kerms Technical Services <[email protected]>
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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]