discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with my first app


From: Nicola Pero
Subject: Re: Problem with my first app
Date: Sun, 14 Oct 2001 21:20:13 +0100 (BST)

> menu = AUTORELEASE ([NSMenu new]); 
> 
> BTW the method 'new' does actually alloc/init using the designated 
> initialiser - it is a 'deprecated' method 
> (NeXT wanted to remove it switching from NS 2.x to 3.0,
> but at the end they did not because of legacy stuff ), 
> so it is better to use alloc/init directly.

new is not at all deprecated and is in widespread use.

if you don't like it, that's another matter, and we can discuss about it
(I could even agree with you), but please give newcomers a fair and
neutral description of the state of things ... it's perfectly good and
normal and standard to use +new (and similar methods) in Objective-C code.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]