• 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: postNotificationName random crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: postNotificationName random crash


  • Subject: Re: postNotificationName random crash
  • From: Bill Bumgarner <email@hidden>
  • Date: Sat, 16 Sep 2006 10:17:55 -0700

On Sep 16, 2006, at 7:54 AM, nick briggs wrote:
I'm really not sure how to proceed, any ideas on what may cause postNotificationName to crash in this manner? The code is straight forward and we use notifications extensively in this app with out ever having seen this problem.

Are you properly unregistering any observers prior to deallocating said observers?


Not doing so is the most common cause of notification related crashes. The notification center does not retain observers and, thus, forgetting to unregister an observer prior to the observer's deallocation leads to crashes.

b.bum
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >postNotificationName random crash (From: nick briggs <email@hidden>)

  • Prev by Date: NSImage with alpha channel of other NSImage
  • Next by Date: Re: End type toBezier line.
  • Previous by thread: postNotificationName random crash
  • Next by thread: NSImage with alpha channel of other NSImage
  • Index(es):
    • Date
    • Thread