• 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: Toplevel Objects in NIB files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toplevel Objects in NIB files


  • Subject: Re: Toplevel Objects in NIB files
  • From: James DiPalma <email@hidden>
  • Date: Tue, 17 Sep 2002 18:16:41 -0400

From: Ondra Cada <email@hidden>

Nevertheless, correct me please if I am wrong, but I believe that it should (and easily could) be fixed by retaining ("overretaining") it when a NIB is loaded, to comply with the general behaviour that all NIB top-level objects are retained (or, more precisely, created and not autoreleased).

You are too kind, not retaining a shared instance during alloc/init is a violation of object ownership rules. All top-level objects in a nib file are owned by whoever loads that nib file and should be released/autoreleased when they are done owning them.


-jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Toplevel Objects in NIB files (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Toplevel Objects in NIB files
  • Next by Date: Re: Obj-C question: protocol usage and inheritance
  • Previous by thread: Re: Toplevel Objects in NIB files
  • Next by thread: How to use NSWorkspace's getFileSystemInfoForPath?
  • Index(es):
    • Date
    • Thread