• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Are Nibs forever?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Are Nibs forever?
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Re: Cocoa runtime VM?
  • Next by Date: binding with tranformer question
  • Previous by thread: Re: Formatters in IB
  • Next by thread: Re: Are Nibs forever?
  • Index(es):
    • Date
    • Thread