• 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
Re: Disposing of a Nib file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disposing of a Nib file


  • Subject: Re: Disposing of a Nib file
  • From: Ian was here <email@hidden>
  • Date: Wed, 27 Jul 2005 21:38:47 -0700 (PDT)

OK, thanks. The owner needs to take responsibility for
releasing other objects on the Nib file, then.



--- j o a r <email@hidden> wrote:

>
> On 27 jul 2005, at 19.22, Ian was here wrote:
>
> > I have an application with many Nib files. I have
> a
> > particular Nib file that has two classes on it,
> the
> > owner and a view. When I release the owner class,
>
> You don't release classes, you releases instances of
> classes.
>
> > the
> > view class' dealloc method is never called. I was
> > wondering if there was any way to release or
> otherwise
> > dispose of the Nib file and all of it's objects.
>
> You are responsible for releasing all top level
> objects that you load
> from a nib file (unless you're a subclass from
> NSWindowController,
> then you get some help with that). So if you have a
> top level NSView
> in your nib file, the object loading the view - the
> "files owner"
> with the outlet to the view - should release the
> view in dealloc.
>
> You can find more information on this topic in the
> documentation, and
> in the list archives.
>
> j o a r
>
>
>




____________________________________________________
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

References: 
 >Re: Disposing of a Nib file (From: j o a r <email@hidden>)

  • Prev by Date: Question on guidelines of integrating C++ calls inside an Obj C class
  • Next by Date: [Core Data - Newbie] Creating Reports
  • Previous by thread: Re: Disposing of a Nib file
  • Next by thread: Will this cause a leak?
  • Index(es):
    • Date
    • Thread