On 24 Feb 2016, at 00:47, Quincey Morris <quinceymor...@rivergatesoftware.com> wrote: > For example, an object obtained via [[…alloc]init…] is generally assumed to > be returned with a +1 ownership, but an object obtained via a class method > named ‘newXXX…’ is generally assumed to be returned with +0 ownership.
Did you really mean +newBlah ? Not something like +blahWithX: or just +blah? Because +new is documented to just be a shorthand for +alloc followed by -init on the result, so +newBlah behaving differently than +new sounds kinda inconsistent to me. Did I miss a serious gotcha there? Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://stacksmith.org _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com