• 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: KVO and accessors - are they needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVO and accessors - are they needed


  • Subject: Re: KVO and accessors - are they needed
  • From: Scott Stevenson <email@hidden>
  • Date: Sat, 23 Oct 2004 14:45:38 -0700


On Oct 23, 2004, at 6:54 AM, Steven Kramer wrote:

Agreed, but even then KVC will have to do some runtime mangling (looking up argument types for type coercion). So it never becomes a truly trivial operation, right? I'm asking because I have a situation with quite some classes that are mostly data containers. Adding getters/setters increased the class and code size considerably and speed is not such an issue here.

If that's the case, why not just use a dictionary for the main data?


Half on-topic: I have an easily customized yet slightly powerful perl script for Xcode to do accessors/init/dealloc/coding implementations. Much better than the Apple supplied shell script. If anyone's reading this and interested, let me know.

Not to discredit what you've done, but Kevin Callahan's Accessorizer is very good for this:

http://www.kevincallahan.org/software/accessorizer.html


- Scott

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >KVO and accessors - are they needed (From: Bruce Truax <email@hidden>)
 >Re: KVO and accessors - are they needed (From: "John C. Randolph" <email@hidden>)
 >Re: KVO and accessors - are they needed (From: Steven Kramer <email@hidden>)
 >Re: KVO and accessors - are they needed (From: "John C. Randolph" <email@hidden>)
 >Re: KVO and accessors - are they needed (From: Steven Kramer <email@hidden>)

  • Prev by Date: Network location startup
  • Next by Date: Re: uninstaller
  • Previous by thread: Re: KVO and accessors - are they needed
  • Next by thread: Re: KVO and accessors - are they needed
  • Index(es):
    • Date
    • Thread