Re: Application design & menu question
Re: Application design & menu question
- Subject: Re: Application design & menu question
- From: j o a r <email@hidden>
- Date: Mon, 25 Sep 2006 19:17:09 +0200
On 25 sep 2006, at 17.23, David Aames wrote:
I'm currently working on an application which needs to be supplied
with a password for it start. I've been thinking about the best
possible way of starting up. My question is whether I should pack
both the password dialog and the app GUI in one NIB or separate.
Also if I pack them in one NIB how would I disable the menus in the
menubar while the password dialog is shown?
While you can programmatically create a menu, or replace a menu, it
can be a bit problematic (see list archives), so I would suggest that
you keep the menu in the nib, and instead use menu item validation to
disable menu items as appropriate.
If you maintain an "user is authenticated" state in your application,
you can use this in your menu item validation code.
After the correct password is provided would it be okay just to
[passwdWindow close]; and [mainWindow makeKeyAndOrderFront:sender]?
Do you have any reason to suspect that it wouldn't be OK?
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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