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 notification NSUserNotificationCenter is deprecated + missing Info.plist #449

Closed
KeyWeeUsr opened this issue Oct 14, 2018 · 1 comment
Milestone

Comments

@KeyWeeUsr
Copy link
Contributor

usrnotifctr.setDelegate_(self)

and also defaultUserNotificationCenter() returns None due to missing instructions for macOS
throws a NoneType not having a setDelegate_ attribute.

For other than None result of defaultUserNotificationCenter() there has to be a Info.plist for the application.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleIdentifier</key>
    <string>org.python.python</string>
</dict>
</plist>

ref: jaredks/rumps#9
ref: https://github.com/jaredks/rumps/pull/36/files

@akshayaurora
Copy link
Member

akshayaurora commented Jul 6, 2022

This is no longer a issue with python 3.9+ from python.org + venvs and Monterey. Re-open if you can reproduce with new versions.

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

No branches or pull requests

2 participants