Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: property name-to-accessor munging? (was: Dot Syntax docs missing?)




On Jul 20, 2008, at 4:17 AM, Jean-Daniel Dupas wrote:

The dot syntax uses the getter and setting specified for the property in the @property declaration. As documented[1], if you don't explicitly supply getter or setter names in that directive, it defaults to the property name for the getter and "set" plus the property name with its first letter capitalized plus a trailing colon for the setter.

It also has a special case for boolean where getter may be prefixed by "is": enabled => isEnabled / setEnabled:.


For dot syntax, no it doesn't.
If you want to use isEnabled, you must specify it in the property declaration.


mmalc


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Dot Syntax docs missing? (From: Rick Mann <email@hidden>)
 >property name-to-accessor munging? (was: Dot Syntax docs missing?) (From: Rick Mann <email@hidden>)
 >Re: property name-to-accessor munging? (was: Dot Syntax docs missing?) (From: Ken Thomases <email@hidden>)
 >Re: property name-to-accessor munging? (was: Dot Syntax docs missing?) (From: Jean-Daniel Dupas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.