• 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: Crashing Problem calling postNotificationName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Crashing Problem calling postNotificationName (From: Dave <email@hidden>)
 >Re: Crashing Problem calling postNotificationName (From: Dave <email@hidden>)
 >Re: Crashing Problem calling postNotificationName (From: Graham Cox <email@hidden>)
 >Re: Crashing Problem calling postNotificationName (From: Dave <email@hidden>)
 >Re: Crashing Problem calling postNotificationName (From: Etienne Samson <email@hidden>)
 >Re: Crashing Problem calling postNotificationName (From: Dave <email@hidden>)
 >Re: Crashing Problem calling postNotificationName (From: Kyle Sluder <email@hidden>)
 >Re: Crashing Problem calling postNotificationName (From: Dave <email@hidden>)
 >Re: Crashing Problem calling postNotificationName (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Crashing Problem calling postNotificationName
  • Next by Date: Re: Analyser reports memory leak… where?
  • Previous by thread: Re: Crashing Problem calling postNotificationName
  • Next by thread: Apple Developer Support?
  • Index(es):
    • Date
    • Thread