In article 
<CACgdh2gj+VD9yGA-HCRv8y=ov7dqc8b9iwq3rlgyrwgl7z+...@mail.gmail.com>,
 Paul Wiseman <poal...@gmail.com> wrote:
> I've got an app which at the moment displays custom drawn tray style
> notifications.
> 
> The app targets OSX 10.5+. I want to start looking at showing these
> messages/notifications through the native notification centre for users on
> systems that support it (10.8+).
> 
> I have a few questions on how to do this. It looks like this should be
> possible by creating the correct object
> <https://developer.apple.com/library/mac/documentation/Foundation/Reference/NS
> UserNotification_Class/>through
> pyobjc. Will it be possible to just include the bits of pyobjc in my final
> app that I need to create the notifications? I'd rather not include the
> whole of pyobjc just for this one bit of functionality if I can avoid it.
> If so how might I got about separating the unused parts of the library out
> (I'm using py2app)

If you don't get an answer here, you should try the pyobjc list:

https://lists.sourceforge.net/lists/listinfo/pyobjc-dev

Another simple-minded possibility: use the AppleScript "display 
notification" command by "shelling out" from your app to osascript:

http://apple.stackexchange.com/questions/57412/how-can-i-trigger-a-notifi
cation-center-notification-from-an-applescript-or-shel

-- 
 Ned Deily,
 n...@acm.org

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to