Re: Tracking down NSNotification center sigaborts
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