Re: Crashing Problem calling postNotificationName
Re: Crashing Problem calling postNotificationName
- Subject: Re: Crashing Problem calling postNotificationName
- From: Dave <email@hidden>
- Date: Thu, 12 Sep 2013 19:41:34 +0100
On 12 Sep 2013, at 18:45, Kyle Sluder <email@hidden> wrote:
>>
>> No, just at the receiver, the sender need do nothing, in fact its
>> unchanged.
>
> How? You need to update the sender to send to the correct notification
> center.
Sorry, I mis-read this, I see what you mean now, I might have had to change the sender, but I didn't because I have one method in the whole app that returns the default notification center, which is why I subclass it. I just changed this method to return the subclass instead and the whole App now uses the subclass, sorry, I should have explained that. I never call things like:
[NSNotificationCenter defaultCenter] directly in an application if I can help it. It's much better to retrieve it from one place - the case in hand shows this because it made it sp easy to implement the subclass.
All the Best
Dave
_______________________________________________
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