• 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
"get" prefixes in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"get" prefixes in Cocoa


  • Subject: "get" prefixes in Cocoa
  • From: "Sumner Trammell" <email@hidden>
  • Date: Wed, 30 Jul 2008 04:11:27 -0400

Hi. Cocoa idioms dictate setFoo: and foo: for setters and getters.
Occasionally, the prefix "get" appears in a Cocoa method, like this
one:


- (void)getObjects:(id *)objects andKeys:(id *)keys


When a method is prefixed with get in Cocoa, what is being expressed?


Thanks,
-s
_______________________________________________

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: "get" prefixes in Cocoa
      • From: Ken Thomases <email@hidden>
    • Re: "get" prefixes in Cocoa
      • From: Rob Ross <email@hidden>
  • Prev by Date: Re: private methods and variables
  • Next by Date: Is the WebView inspector buggy in Interface Builder 3.0?
  • Previous by thread: Re: CSV parsing (large files)
  • Next by thread: Re: "get" prefixes in Cocoa
  • Index(es):
    • Date
    • Thread