• 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
removeObserver with keyPath nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

removeObserver with keyPath nil


  • Subject: removeObserver with keyPath nil
  • From: Gordon Apple <email@hidden>
  • Date: Tue, 20 Nov 2012 11:16:35 -0600
  • Thread-topic: removeObserver with keyPath nil

What¹s the story on removeObserver:self forKeyPath:nil, called in dealloc?
Supposedly, this works.  The docs don¹t say you can¹t use nil.  However, I
have run into at least one place where did not work.  We converted from GC
to ARC and have a bunch of these.  I have seen statements that it worked
under GC, but possibly not otherwise.

_______________________________________________

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


  • Follow-Ups:
    • Re: removeObserver with keyPath nil
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: MacOS: Selecting from Multiple tables in the same window
  • Next by Date: Notification for if User changes Finder Label on File
  • Previous by thread: Re: MacOS: Selecting from Multiple tables in the same window
  • Next by thread: Re: removeObserver with keyPath nil
  • Index(es):
    • Date
    • Thread