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

KVO and accessors - are they needed


  • Subject: KVO and accessors - are they needed
  • From: Bruce Truax <email@hidden>
  • Date: Tue, 19 Oct 2004 22:23:34 -0400

I have been religiously creating and using set and get accessors for all
variables for which I use KVO. This is recommended by the documentation but
the documentation also states that if the accessors are not present the
variable will still be accessed using default set and get methods. I have a
couple of classes with a large number of variables for which I use KVO and
binding. These classes have a lot of methods, 90% of which are set and get
methods for floats, ints, NSStrings, BOOL's etc. The classes would be much
smaller and easier to read without all of these methods. What do the
experts recommend?

Bruce

_______________________________________________
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

  • Follow-Ups:
    • Re: KVO and accessors - are they needed
      • From: Scott Stevenson <email@hidden>
    • Re: KVO and accessors - are they needed
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: application:openFile: usage
  • Next by Date: Re: NSToolbar and Metal
  • Previous by thread: Re: application:openFile: usage
  • Next by thread: Re: KVO and accessors - are they needed
  • Index(es):
    • Date
    • Thread