Re: Toplevel Objects in NIB files
Re: Toplevel Objects in NIB files
- Subject: Re: Toplevel Objects in NIB files
- From: Ondra Cada <email@hidden>
- Date: Tue, 17 Sep 2002 13:44:53 +0200
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.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.