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: Accessor method naming (a question)




On Jun 9, 2005, at 3:34 PM, Ondra Cada wrote:

Larry,

NSView defines "isHidden" and "setHidden". Shouldn't this be "isHidden" and "setIsHidden"? If not, then Accessorizor won't work, because if your ivar is name "isHidden", it will produce "setIsHidden". I guess the question is, how serious a violation of the coding rules is "setIsHidden" as opposed to "setHidden"?



isXXX is a somewhat special case. See the "If the attribute is expressed as an adjective" part with the "setEditable:" example in the very guide you quoted :)
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc

should I parse for "is" and handle this as a special case?

Kevin

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

This email sent to email@hidden
References: 
 >Accessor method naming (a question) (From: Larry Gerndt <email@hidden>)
 >Re: Accessor method naming (a question) (From: Ondra Cada <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.