2012-07-29 52 views
1

我如何能夠通過我的mac應用程序中的objective-c向Mountain Lion的通知中心發送通知? (不要與nsnotificationcenter混淆)。我想要一個示例項目或示例代碼的鏈接。向山獅的通知中心發送通知

回答

2

調查NSUserNotification類。完成設置後,您可以通過NSUserNotificationCenter課程來安排課程,然後該課程將向用戶呈現演示文稿。

+2

NSUserNotification的URL在這裏:https://developer.apple.com/library/mac/#documentation/Foundation/Reference/NSUserNotificationCenter_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40012260 – banderson623 2012-08-01 02:06:36