• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to prevent app activation on NSUserNotification action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to prevent app activation on NSUserNotification action


  • Subject: How to prevent app activation on NSUserNotification action
  • From: Alex Kac <email@hidden>
  • Date: Thu, 26 Feb 2015 19:11:05 -0700

If my app is currently hidden and a user notification occurs and the user taps on the action button (in my case "Snooze"); how do I prevent the app from coming to the foreground? If the user hits Snooze I don't want the app to come to the foreground. I put a breakpoint on all my show window methods or what-not, none of them are being called - only the didActivate method of notification.





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: How to prevent app activation on NSUserNotification action
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Updating Mapping Model after changing schema
  • Next by Date: Re: Instantiate NSString from NSURL in Swift
  • Previous by thread: Re: Updating Mapping Model after changing schema
  • Next by thread: Re: How to prevent app activation on NSUserNotification action
  • Index(es):
    • Date
    • Thread