0

Why local notification is no supported by OS X 10.9? I know IOS has UILocalNotification Class.

I want to show some notification bellow menu bar which is generated by my program.

Is there any alternate way to do this? Or should I write my own local notification view?

Bryan Chen
  • 45,816
  • 18
  • 112
  • 143
Yifan Wang
  • 504
  • 6
  • 13

1 Answers1

3

It sounds like you are looking for NSUserNotification functionality, which goes along with the MacOS NSUserNotificationCenter.

I've linked the documentation at Apple to help you out.

As you are learning, many classes and objects supplied in the iOS SDK don't have exact same classes and objects in the MacOS SDK. Anything with "UI" in the framework name is usually meant only for iOS.

Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
  • Another small question, why my program user notification icon in OS X notification center is mac default icon. I use another 'image.icns' as my program icon file. – Yifan Wang May 23 '14 at 06:11
  • I delete ~/Library/Application Support/NotificationCenter/*.db and restart my computer, it is still mac default icon for my program. – Yifan Wang May 23 '14 at 06:12
  • this is a different question and if you ask it in a separate question, I'll try to answer it very quickly... – Michael Dautermann May 23 '14 at 06:12
  • OK, i create a new question. http://stackoverflow.com/questions/23822195/why-my-program-icon-in-os-x-notification-center-is-mac-default-icon – Yifan Wang May 23 '14 at 06:23