[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about memory management
From: |
Graham Lee |
Subject: |
Re: Question about memory management |
Date: |
Wed, 5 Jun 2013 06:55:15 +0100 |
That's returning a shared static instance of the GSComboWindow class, so it's
expected that it isn't released. It's also outside of the NSComboBoxCell class,
so as far as NSComboBoxCell instances are concerned, they should obey standard
memory management rules:
- if you got an object via +alloc, -copy or -new, you own it and should
-release or -autorelease it later.
- if you didn't, you don't own it unless you -retain it
- if you did neither of these, don't -release or -autorelease it.
NSComboBoxCell is consistent with these rules.
Graham.
On 5 Jun 2013, at 06:50, Germán Arias <address@hidden> wrote:
> Class method +defaultPopUp, line 118.
>
> Germán.
>
> On 2013-06-04 23:38:10 -0600 "Graham Lee" <address@hidden> wrote:
>
>> Where are you seeing that? I'm looking at -_popUp here:
>> http://svn.gna.org/svn/gnustep/libs/gui/trunk/Source/NSComboBoxCell.m
>>
>> No -init, -new or -copy that I can see.
>>
>> Graham.
>>
>
- Question about memory management, Germán Arias, 2013/06/03
- Re: Question about memory management, Maxthon Chan, 2013/06/03
- Re: Question about memory management, Graham Lee, 2013/06/04
- Re: Question about memory management, Germán Arias, 2013/06/04
- Re: Question about memory management, Graham Lee, 2013/06/05
- Re: Question about memory management, Germán Arias, 2013/06/05
- Re: Question about memory management,
Graham Lee <=
- Re: Question about memory management, Germán Arias, 2013/06/05
- Re: Question about memory management, Ivan Vučica, 2013/06/06
- Re: Question about memory management, Maxthon Chan, 2013/06/07
- Re: Question about memory management, David Chisnall, 2013/06/07
- Re: Question about memory management, Graham Lee, 2013/06/07
- Re: Question about memory management, David Chisnall, 2013/06/07
- Re: Question about memory management, Maxthon Chan, 2013/06/07
- Re: Question about memory management, David Chisnall, 2013/06/07
- Re: Question about memory management, Maxthon Chan, 2013/06/07
- Re: Question about memory management, Ivan Vučica, 2013/06/07