Are Nibs forever?
Are Nibs forever?
- Subject: Are Nibs forever?
- From: Ian was here <email@hidden>
- Date: Thu, 28 Jul 2005 14:49:25 -0700 (PDT)
Something interesting I noticed. I create a Nib, all
of the objects and views on that Nib fire their init:
and awakeFromNib: methods. When I release the view
objects on that Nib, the application crashes
(releasing class instances seems to work OK).
When the Nibs owner is released, I have it so it
releases any other nonview objects. Their dealloc:
methods are called. It seems odd that if I release
the view, crash! Otherwise, it remains in memory (the
view's dealloc: method is never called).
I have many Nib files and it would be ideal to create
and dispose of them the way one would with objects,
rather than having them always sitting in memory.
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden