• 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: Objective-C Instance Variable Names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C Instance Variable Names


  • Subject: Re: Objective-C Instance Variable Names
  • From: Jim Correia <email@hidden>
  • Date: Sun, 6 Apr 2008 19:50:11 -0400

On Apr 6, 2008, at 7:39 PM, John Stiles wrote:

You can't be KVC compliant if you use prefixes like m_, so this limits your potential for using things like bindings.

Yes and no. KVC doesn't care what the iVar name is if you write KCV compliant accessor methods (or use properties.)


KVC won't work with direct iVar access if you use funny naming conventions, but driving the interface by binding directly to iVars (instead of public accessors/properties) should be a relatively rare.

Jim

_______________________________________________

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


  • Follow-Ups:
    • Re: Objective-C Instance Variable Names
      • From: "Michael Ash" <email@hidden>
References: 
 >Objective-C Instance Variable Names (From: Richard Somers <email@hidden>)
 >Re: Objective-C Instance Variable Names (From: Jens Alfke <email@hidden>)
 >Re: Objective-C Instance Variable Names (From: "Rob Napier" <email@hidden>)
 >Re: Objective-C Instance Variable Names (From: Scott Andrew <email@hidden>)
 >Re: Objective-C Instance Variable Names (From: John Stiles <email@hidden>)

  • Prev by Date: Re: Objective-C Instance Variable Names
  • Next by Date: Re: Objective-C Instance Variable Names
  • Previous by thread: Re: Objective-C Instance Variable Names
  • Next by thread: Re: Objective-C Instance Variable Names
  • Index(es):
    • Date
    • Thread