Clarification on MMM rules for init?
Clarification on MMM rules for init?
- Subject: Clarification on MMM rules for init?
- From: Dave <email@hidden>
- Date: Sat, 21 Jan 2017 16:43:52 +0000
HI,
This is for a Mac based App.
I’m looking at some old code and have found what I think is a long standing bug. This is a class that has an initWithXXX method which may fail, in this case it calls [self autorelease] and returns nil. However, I have found a case whereby does a [self autorelease], but instead of retuning nil, it returns self. Is this an error?
If so, this framework is being called from an ARC based App, what would be the effect of this error on the App?
All the Best
Dave
_______________________________________________
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