开发者

OS X Lion: NIB/XIB doesn't seem to get loaded if app is launched as a Startup Item

I have a problem which is driving me nuts.

Suppose you have an app with a window that is set to "Visible at Launch". When you launch the app, the window immediatly appears. If you add this simple app to the login startup items list, when you log in, the app is automatically launched and you have the window just opened in front of you. This is what was happening in Snow Leopard.

If you repeat the same steps in Lion, as soon as you log-in, the app is launched but the window does not appear.. It seems that the NIB doesn't get loaded. To make it appear you have to click on the app icon in the dock (even if the app is already launched).

This happens even if you specify [NSApp disableRelaunchOnLogin] according to Apple documentation here.

Things become worst 开发者_如何学Cif your app has NSUIElement = 0 and therefore it doesn't have neither an icon in the Dock, nor a Menubar. In this case there's no way to make the window to appear.

Is there a way to obtain the expected behavior of Snow Leopard? Am I missing something?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜