• 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: question about "read-only" rule for Memory Management
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question about "read-only" rule for Memory Management


  • Subject: Re: question about "read-only" rule for Memory Management
  • From: Philip Mobley <email@hidden>
  • Date: Mon, 26 Apr 2010 23:16:40 -0700

On Apr 26, 2010, at 10:50 PM, Ken Thomases wrote:

>> No. The "get" prefix is used for return-via-pointer. For example,
>> -[NSString getCharacters:range].
>
> As documented here <http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/CodingGuidelines/Articles/NamingMethods.html>.
>
> Cheers,
> Ken

I see... thank you everyone!

The key phrase here is in the link provided by Ken Thomases (I was looking for this before I asked question):

developer.apple.com/.../NamingMethods.html:
> Use “get” only for methods that return objects and values indirectly. You should use this form for methods only when *multiple* items need to be returned.


_______________________________________________

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

References: 
 >question about "read-only" rule for Memory Management (From: Philip Mobley <email@hidden>)
 >Re: question about "read-only" rule for Memory Management (From: Kyle Sluder <email@hidden>)
 >Re: question about "read-only" rule for Memory Management (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: NSManagedObject, retain count and dealloc:
  • Next by Date: Re: NSApplicationMain question
  • Previous by thread: Re: question about "read-only" rule for Memory Management
  • Next by thread: awakeFromFetch Called Multiple Times
  • Index(es):
    • Date
    • Thread