• 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: observers removed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: observers removed?


  • Subject: Re: observers removed?
  • From: j o a r <email@hidden>
  • Date: Sun, 27 Jul 2008 20:05:49 +0200


On Jul 27, 2008, at 7:36 PM, James Maxwell wrote:

Stupid question, probably, but if an object is deleted, is it automatically removed as an observer of notifications? Or should I write a removeObserver into my dealloc?


If you're talking about NSNotification/Center, then the answer is: "It depends".
If you're using GC, you wouldn't have to remove the observer. If you're not using GC, you would.


j o a r


_______________________________________________

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: 
 >observers removed? (From: James Maxwell <email@hidden>)

  • Prev by Date: Re: NSGraphicsContext restore crashes my xtension
  • Next by Date: Re: NSGraphicsContext restore crashes my xtension
  • Previous by thread: Re: observers removed?
  • Next by thread: PDF services
  • Index(es):
    • Date
    • Thread