• 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
Re: Tracking down NSNotification center sigaborts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tracking down NSNotification center sigaborts


  • Subject: Re: Tracking down NSNotification center sigaborts
  • From: Robert Vojta <email@hidden>
  • Date: Tue, 27 Aug 2013 20:23:36 +0200

On 27. 8. 2013, at 19:27, Alex Zavatone <email@hidden> wrote:

> But what was difficult was figuring out how to inspect what's going on in the Notification Center.  Stepping into the postNotificationName method didn't step into anything in the debugger, making the crash a little harder to debug.


You should step into postNotification:

postNotificationName:object: and postNotificationName:object:userInfo: are there for convenience and these methods do create NSNotification object and then post it with postNotification: method. Also notification can be created with NSNotification notificationWithName:object / notificationWithName:object:userInfo class methods as well.

So, if you want to step into notifications, just stick with postNotification: and it should cover all cases how the notification is created / routed.

--
Robert @ Tapmates, Inc.


_______________________________________________

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


References: 
 >Tracking down NSNotification center sigaborts (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Tracking down NSNotification center sigaborts
  • Next by Date: Re: Creating CGFont from PDF Tf operator
  • Previous by thread: Tracking down NSNotification center sigaborts
  • Next by thread: Experience with keyed archiving forward/backwards compatibility?
  • Index(es):
    • Date
    • Thread