On Jan 18, 2009, at 7:20 PM, mmalc Crawford wrote:
On Jan 18, 2009, at 5:13 PM, Justin Carlson wrote:
I would generally write:
- (void)setMovie:(MyMovie *)newMovie {
// make sure it is ok here
In general your accessors should not perform validation; instead you
should implement the appropriate KVV-conformant method.
<http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/Validation.html
>
mmalc
Hi mmalc,
Sorry - Bad example. My example would typically be a high level
operation, unless it applied to one of the few programs that happens
to deal with maaaany instances of MyMovie.
In the context of ObjC in time critical code: Your point does bring
the additional overhead of KVC to the discussion.
Regards,
J
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com