On Sep 27, 2009, at 2:03 AM, Nick Rogers wrote:

1. Method returns an Objective-C object with a +1 retain count (owning reference).

It means exactly what it says. The string was created by -alloc, so you own a reference so it, so you need to call -autorelease on it before returning it. No offense, but this is very basic Cocoa refcounting stuff, so it sounds like you should carefully read the memory management guidelines.

—Jens_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to