Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.objective-c > #159

Re: resource management and constructors question

Newsgroups comp.lang.objective-c
From Automn <automn@willow.org>
Subject Re: resource management and constructors question
References <slrnmdjp8g.88b.automn@sigtrans.org> <mbd893$a2b$1@dont-email.me>
Message-ID <slrnmdkngq.76d.automn@sigtrans.org> (permalink)
Date 2015-02-10 19:34 +0000
Organization SunSITE.dk - Supporting Open source

Show all headers | View raw


On 2015-02-10, Doc O'Leary <droleary@2usenet2014.subsume.com> wrote:
>
> You cannot overload -new because it doesn’t exist (at least not in the
> common Object or NSObject hierarchies).  There is +new and there is -init.
> I have no idea what you want a -new method to do, but you’re welcome to
> use it.  Be sure to document it extremely well if you share your code,
> because it could lead to confusion.
>

OK, I understand, it's the call of the overload that is the problem, not
the interface, nor the implementation.

Thanks,
Automn

Back to comp.lang.objective-c | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

resource management and constructors question Automn <automn@willow.org> - 2015-02-10 10:58 +0000
  Re: resource management and constructors question Doc O'Leary  <droleary@2usenet2014.subsume.com> - 2015-02-10 15:31 +0000
    Re: resource management and constructors question Automn <automn@willow.org> - 2015-02-10 19:34 +0000

csiph-web