• 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: Automatic Key-Value Observing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatic Key-Value Observing


  • Subject: Re: Automatic Key-Value Observing
  • From: Chris Hanson <email@hidden>
  • Date: Tue, 18 Nov 2003 22:18:53 -0600

On Nov 18, 2003, at 4:59 PM, Joannou Ng wrote:
Correct me if I'm wrong. It seems automatic key-value observing when calling accessor methods only works if your accessor methods take parameters.

If a setter doesn't take a parameter, it's not really a setter, is it?

In any case, one important thing to remember about Objective-C (and Smalltalk) is taht the colons are part of the selector and method name, not just language syntax. So the KVO machinery catches methods named "set<PropertyName>:", not "set<PropertyName>".

-- Chris

--
Chris Hanson <email@hidden>
bDistributed.com, Inc.
Outsourcing Vendor Evaluation
Custom Mac OS X Development
Cocoa Developer Training
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Automatic Key-Value Observing (From: Joannou Ng <email@hidden>)

  • Prev by Date: Kiosk Memory Cards and Elegant Ejecting
  • Next by Date: Re: Managing undo with NSArrayController and a table displaying its objects?
  • Previous by thread: Re: Automatic Key-Value Observing
  • Next by thread: Opening a NSOpenPanel in a secondary thread -> crash
  • Index(es):
    • Date
    • Thread