开发者

cocoa's event prior to applicationDidFinishLaunching

开发者 https://www.devze.com 2023-03-17 05:21 出处:网络
I\'m trying to load a window\'s size and other properties on applic开发者_运维问答ation start. Unfortunately, if i do it on

I'm trying to load a window's size and other properties on applic开发者_运维问答ation 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消