Re: ObjC in time-critical parts of the code
Re: ObjC in time-critical parts of the code
- Subject: Re: ObjC in time-critical parts of the code
- From: Justin Carlson <email@hidden>
- Date: Sun, 18 Jan 2009 20:56:29 -0600
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 (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