• 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: Accessor question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Accessor question (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: Accessor question
  • Next by Date: Delegate for checkbox in NSTableView
  • Previous by thread: Re: Accessor question
  • Next by thread: Delegate for checkbox in NSTableView
  • Index(es):
    • Date
    • Thread