• 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: ObjC in time-critical parts of the code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: ObjC in time-critical parts of the code (From: Justin Carlson <email@hidden>)
 >Re: ObjC in time-critical parts of the code (From: Jean-Daniel Dupas <email@hidden>)
 >Re: ObjC in time-critical parts of the code (From: Justin Carlson <email@hidden>)
 >Re: ObjC in time-critical parts of the code (From: mmalc Crawford <email@hidden>)

  • Prev by Date: Re: ObjC in time-critical parts of the code
  • Next by Date: Re: ObjC in time-critical parts of the code
  • Previous by thread: Re: ObjC in time-critical parts of the code
  • Next by thread: Re: ObjC in time-critical parts of the code
  • Index(es):
    • Date
    • Thread