Re: Toplevel Objects in NIB files
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.