Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS端这段代码提出疑问 #702

Open
Meterwhite opened this issue Dec 29, 2024 · 0 comments
Open

macOS端这段代码提出疑问 #702

Meterwhite opened this issue Dec 29, 2024 · 0 comments

Comments

@Meterwhite
Copy link

Hi,观察次图片所指
图片
导致我把leancloud的初始化工作从applicationDidFinishLaunching拿到applicationWillFinishLaunching去做才避免了崩溃。通过字面意思去读,这里通知名和方法有明显的矛盾,是否本意是要使用NSWorkspaceSessionDidResignActiveNotification这种通知。根据iOS端端代码阅读iOS是没有问题的UIApplicationDidEnterBackgroundNotification对应didEnterBackground:

目前看这个地方对macOS还算很大,启动就崩溃。不知道作者是否本意就是如此,希望得到作者的回复,见谅。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant