开发者

cocoa's event prior to applicationDidFinishLaunching

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜