Re: Displaying alert window at the start of the application
Re: Displaying alert window at the start of the application
- Subject: Re: Displaying alert window at the start of the application
- From: Yann Bizeul <email@hidden>
- Date: Tue, 4 May 2004 12:52:59 +0200
>
I created a separate nib(AlertWindow) file with Attention Panel or IB
>
Palette properties (by selecting the options while creating new nib
>
file) and changed the Main Nib file property in the target settings to
>
the AlertWindow, in this case the alert window will not be shown. But
>
creating AlertWindow nib by selecting Application option while
>
creating new nib file shows the alert window at the start. After user
>
action I will be closing the alert window and loading the MainMenu nib
>
file. Everything fine with this approach but the application is not
>
able to make connections to the menu items in the MainMenu nib file
>
and there will be a two instances of menu items(application name). How
>
to avoid this menu problems(I have removed the menu objects for
>
AlertWindow nib completely)
I think the main nib file must be owned by an NSApplication object,
that's why you can't set it to be a NSPanel or whatever.
BTW, why using a custom nib to do this ? You can put pour panel in
MainMenu.nib and show it when the application starts. Am I wrong ?
>
I tried by hiding the main window after application launch and showing
>
alert window, but the main window can be closed after application
>
launch and the user can see the window for some milli seconds.
You can set the main window to not open when the application start,
check the properties in IB. Using the same property, you can set your
alert to open when the application starts.
--
Yann Bizeul - yann at tynsoe.org
http://projects.tynsoe.org/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.