<s> from plyer . facades import Notification <EOL> import Foundation <EOL> import objc <EOL> import AppKit <EOL> class OSXNotification ( Notification ) : <EOL> def _notify ( self , ** kwargs ) : <EOL> NSUserNotification = objc . lookUpClass ( '<STR_LIT>' ) <EOL> NSUserNotificationCenter = objc . lookUpClass ( '<STR_LIT>' ) <EOL> notification = NSUserNotification . alloc ( ) . init ( ) <EOL> notification . setTitle_ ( kwargs . get ( '<STR_LIT:title>' ) . encode ( '<STR_LIT:utf-8>' ) ) <EOL> notification . setInformativeText_ ( kwargs . get ( '<STR_LIT:message>' ) . encode ( '<STR_LIT:utf-8>' ) ) <EOL> notification . setSoundName_ ( "<STR_LIT>" ) <EOL> NSUserNotificationCenter . defaultUserNotificationCenter ( ) . setDelegate_ ( self ) <EOL> NSUserNotificationCenter . defaultUserNotificationCenter ( ) . scheduleNotification_ ( notification ) <EOL> def instance ( ) : <EOL> return OSXNotification ( ) </s>
