discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Two questions about NSView class


From: Fred Kiefer
Subject: Re: Two questions about NSView class
Date: Tue, 29 Jul 2008 22:55:57 +0200

Did you already get an answer to these questions?

First of all, in Objective-C you should not be concerned too much about memory. 
Normally things just happen correctly. When you remove a view from the 
hierarchy with removeSubView: then that view may or may not be freed. What 
happens is the it will get releases and if the retain count for the view drops 
to zero it gets deallocated.
The method viewWillMoveToWindow: will be called in that process (as well as in 
many other cases), but in itself this hasn't much to do with memory management.

For standard GNUstep applications there is a memory usage display hidden in the 
info dialog. Just click on the image in that dialog.

Fred 

-------- Original-Nachricht --------
> Datum: Thu, 24 Jul 2008 23:24:37 +0000 (UTC)
> Von: "Germán Arias" <germanandre304@yahoo.com>
> An: discuss-gnustep@gnu.org
> Betreff: Two questions about NSView class

> OK, the methods -(void)removeSubview: and -(void)viewWillMoveToWindow:
> release
> the memory too, or just remove the objects from the receiver?, is there a
> way to
> see how my app handle the memory?
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnustep

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger




reply via email to

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