ARC uses the analyzers rules. I was told that if you trust the analyzer (and 
follow it's rules), ARC will be fine.

I have a few pieces of code that the analyzer was unhappy with, bugs had been 
submitted, but they were primarily with C++ code wrapping CF objects.

-- 
Glenn L. Austin, Computer Wizard and Race Car Driver         <><
<http://www.austinsoft.com>

> On May 3, 2020, at 11:46 PM, Dave via Cocoa-dev <cocoa-dev@lists.apple.com> 
> wrote:
> 
> Yes, that’s correct, nothing wrong with a method beginning with new as long 
> as it follows the rules, I use it all the time.
> 
> I’m not sure if it matters at all with ARC, but I stick by the rules anyway.
> 
> Cheers
> Dave
> 
>> On 30 Apr 2020, at 00:27, Sandor Szatmari via Cocoa-dev 
>> <cocoa-dev@lists.apple.com> wrote:
>> 
>> Alex,
>> 
>>> On Apr 29, 2020, at 17:12, Alex Zavatone via Cocoa-dev 
>>> <cocoa-dev@lists.apple.com> wrote:
>>> 
>>> Not sure about this, but in Objective-C, you’re not supposed to start 
>>> methods with new.
>> 
>> I’ve always operated under the premise that using a reserved prefix, such as 
>> new, was not verboten.  Rather, if one chose the prefix new one must ensure 
>> that the method followed memory management conventions, and would return an 
>> object with a +1 retain count.  Am I mistaken about this?
>> 
>> Sandor
> 
> _______________________________________________
> 
> 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/glenn%40austinsoft.com
> 
> This email sent to gl...@austinsoft.com

_______________________________________________

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

Reply via email to