• 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: 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.
  • Follow-Ups:
    • Re: Toplevel Objects in NIB files
      • From: James DiPalma <email@hidden>
    • Re: Toplevel Objects in NIB files
      • From: James DiPalma <email@hidden>
    • Re: Toplevel Objects in NIB files
      • From: Vince DeMarco <email@hidden>
References: 
 >Re: Toplevel Objects in NIB files (From: Vince DeMarco <email@hidden>)

  • Prev by Date: Re: limit text input in NSTextView
  • Next by Date: Re: Get default Browser and Mail Client
  • Previous by thread: Re: Toplevel Objects in NIB files
  • Next by thread: Re: Toplevel Objects in NIB files
  • Index(es):
    • Date
    • Thread