• 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: Stupid objective-c question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stupid objective-c question


  • Subject: Re: Stupid objective-c question
  • From: Gabriel Zachmann <email@hidden>
  • Date: Thu, 22 Sep 2016 12:16:18 +0200

>> As to the context type, I would be interested to know of cases where the observer doesn't have control over the context. My understanding is that the context is something that the observer sets itself when calling addObserver, and it is passed back to itself in the above method call. So the observer should know what kind of entity the context is, and can determine the best way to compare this value.
>
> Subclasses or superclasses can register observers, so it’s possible for your observer method to get called for observations that you didn’t create.
>

That makes me wonder: why isn't it possible to register several, different observers for the same thing?
That way, I wouldn't need to care about observations I didn't create, would I?

Forgive my ignorance ...

Best regards,
Gabriel.




_______________________________________________

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: Stupid objective-c question
      • From: Quincey Morris <email@hidden>
References: 
 >Stupid objective-c question (From: Gabriel Zachmann <email@hidden>)
 >Re: Stupid objective-c question (From: Graham Cox <email@hidden>)
 >Re: Stupid objective-c question (From: Quincey Morris <email@hidden>)
 >Re: Stupid objective-c question (From: Graham Cox <email@hidden>)
 >Re: Stupid objective-c question (From: Doug Hill <email@hidden>)
 >Re: Stupid objective-c question (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Stupid objective-c question
  • Next by Date: Normalising file names on macOS
  • Previous by thread: Re: Stupid objective-c question
  • Next by thread: Re: Stupid objective-c question
  • Index(es):
    • Date
    • Thread