Re: Accessor question
Re: Accessor question
- Subject: Re: Accessor question
- From: Shawn Erickson <email@hidden>
- Date: Fri, 01 Dec 2006 08:28:25 -0800
On Dec 1, 2006, at 8:19 AM, Andrew Merenbach wrote:
Hi, all. I had a quick question about form with regard to accessors.
I noticed that the Objective-C frameworks are not entirely
consistent with regard to accessors that employ "is" as a prefix.
NSWindow, for instance, has -isZoomed, and -setIsZoomed:, but it
also has -isOpaque and -setOpaque:. One of these, as one plainly
sees, has "setIs," and the other just uses "set." Which is the
proper form if one is using bindings and wants proper KVC coding
compliance?
<http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueCoding/Concepts/Compliant.html>
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CodingGuidelines/Articles/NamingMethods.html>
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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