How can I subclass NSDocumentController?
There are two ways to subclass NSDocumentController: You can make an instance of your subclass in your application’s main nib file. This instance becomes the shared instance. You can create an instance of your subclass in your application delegate’s applicationWillFinishLaunching: method. The first NSDocumentController object to be created becomes the shared instance. The Application Kit itself creates the shared instance (using the NSDocumentController class) during the “finish launching” phase of application startup. So if you need a subclass instance, you must create it before the Application Kit does.
There are two ways to subclass NSDocumentController. You can make an instance of your subclass in your application’s main nib file. This instance will become the shared instance. Or you can create an instance of your subclass in your application’s delegate’s applicationWillFinishLaunching: method. The first NSDocumentController to be created will become the shared instance. The Application Kit itself will create the shared instance (using the NSDocumentController class) during the “finish launching” phase of application startup. So if you need a subclass you must create it before the kit does.
Related Questions
- I have applied for a Subclass 485 visa and have completed an Australian Qualification Framework (AQF) III, IV or Diploma. How will I be affected by the priority processing Direction?
- Why is a distinction made between IgG subclass deficiency and Specific Antibody Deficiency?
- How long is a Prospective Marriage, subclass 300, visa valid for?