开发者

applicationShouldHandleReopen is no longer called in Lion/XCode 4.1

I've just installed OS X Lion and XCode 4.1.

I have an app that opens the last used document automatically at startup. To do so I have implemented applicationShouldHandleReopen.

This app used to launch fine from XCode 4.0.2 on Snow Leopard.

After I compiled my app with XCode 4.1 it stopped working.

I put a break point inside applicationShouldHandleReopen, but it never breaks unless I click on the app icon on dock.

When I double click the app in Finder as opposed to running开发者_开发百科 it from XCode 4.1, it works as expected; it launches the last document, meaning applicationShouldHandleReopen must have been called at startup.

Any ideas what happened? What should I do to bring back the old behavior?

Or do you think this is a bug in XCode 4.1?

Thanks


This is no longer an issue. I don't observe this behavior any more.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜