Re: Toplevel Objects in NIB files
Re: Toplevel Objects in NIB files
- Subject: Re: Toplevel Objects in NIB files
- From: Vince DeMarco <email@hidden>
- Date: Tue, 17 Sep 2002 08:25:52 -0700
On Tuesday, September 17, 2002, at 04:44 AM, Ondra Cada wrote:
On Monday, September 16, 2002, at 09:55 , Vince DeMarco wrote:
Don't release the Font Manager, its a shared instance in the AppKit.
There is only one.
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).
I believe such a change would break no backward compatibility, since
so far nobody could release it lest the app do weird things; if you
add the retain, anyone would be able to consistently release all
top-level objects from a NIB as soon as it is needed no more, whilst
the fact Font Manager is actually a shared object would be
encapsulated under the API level, which I think is the right way to do
such things.
Yeah this would work fine too.
vince
_______________________________________________
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.