On Sun, Apr 6, 2008 at 7:50 PM, Jim Correia <[EMAIL PROTECTED]> wrote:
> 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.

Of course direct ivar access works with funny naming conventions. The
keys obviously have to share the funny naming convention, but this is
just mildly ugly, not any sort of showstopper. For proof, watch
Interface Builder not grind to a halt when you start prefixing all of
your IBOutlet names.

Mike
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to