Re: Automatic Key-Value Observing
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.