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.
Assume that an array of images is loaded at the start of the app.
There are a number of views which will be displaying multiple copies of the
image, but they will be accessing the image array as a read-only property, and
I do not plan to have these views adjust the reference count for each
On Apr 26, 2010, at 6:57 PM, Philip Mobley wrote:
Question: is the BELOW method named appropriately?
- (UIImage *) getImageWithTag:(NSString *)tag;
Usually Cocoa method names drop the “get” prefix, so ideally the name would
just be “imageWithTag:”.
But yes, there’s no need to say “copy”
On Mon, Apr 26, 2010 at 6:57 PM, Philip Mobley p...@dreystone.com wrote:
Question: is the BELOW method named appropriately?
- (UIImage *) getImageWithTag:(NSString *)tag;
No. The get prefix is used for return-via-pointer. For example,
-[NSString getCharacters:range].
--Kyle Sluder
On Apr 26, 2010, at 11:39 PM, Kyle Sluder wrote:
On Mon, Apr 26, 2010 at 6:57 PM, Philip Mobley p...@dreystone.com wrote:
Question: is the BELOW method named appropriately?
- (UIImage *) getImageWithTag:(NSString *)tag;
No. The get prefix is used for return-via-pointer. For example,