简体   繁体   中英

cocoa's event prior to applicationDidFinishLaunching

I'm trying to load a window's size and other properties on application start. Unfortunately, if i do it on

applicationDidFinishLaunching

or

applicationWillFinishLaunching

... i get an ugly flicker, showing the unmodified window and quickly switching to a modified one. I know how to do this for my non-main windows that run with window controllers (usually i do this in awake from nib event), but how would i do it in an application delegate?

Thank you

You can tell the window to not be visible at launch, which means you can create your window, mess with its frame size and all that, and then show it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM