[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: |
Tue, 4 Jun 2013 06:59:15 +0100 |
NSComboBoxCell doesn't release its popup window, but it doesn't retain it
either so there's no unbalanced memory use.
Graham.
On 4 Jun 2013, at 00:33, "Germán Arias" <address@hidden> wrote:
> For autocomplete I have a class GSAutocompleteWIndow. The
> method -complete: (in NSTextVIew) do something like:
>
> GSAutocompleteWindow *window = [GSAutocompleteWindow defaultWindow];
> [window displayForTextView: self];
>
> I think I should release this window at some point. Maybe in
> -dealloc or with a notification when app will close. But looking
> at code in NSCoimboBoxCell.m, the GSComboWindow is not
> released at some point. So, is this a memory leak? Or I don't
> should worry about this. If I add a NSLog() in dealloc, this is
> never called. So, I think this is a memory leak.
>
> Thanks.
> Germán.
>
>
> _______________________________________________
> Gnustep-dev mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/gnustep-dev
- 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 <=
- 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, 2013/06/05
- 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