• 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: Instantiating Objects in Nib Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instantiating Objects in Nib Files


  • Subject: Re: Instantiating Objects in Nib Files
  • From: Shaun Wexler <email@hidden>
  • Date: Sat, 15 Nov 2003 17:55:59 -0800

On Nov 15, 2003, at 4:54 PM, Dietrich Epp wrote:

I can't seem to instantiate an NSDocumentController in a nib file. It's another one of those things that I've done before, but something has changed or I've forgotten something. I select NSDocumentController in the classes tab and in the classes menu... instantiate is disabled. I try to create an NSObject then select NSDocumentController as its subclass, but I can't figure out how to create an NSObject either. What gives? Am I missing something obvious?

In IB, you'd select the Classes tab, which enables the Read Files... menu item. Navigate to the AppKit framework and select the header file for NSDocumentController. Create a subclass, which then is able to be instantiated. The easiest way is to drag a copy of your own subclass's header file from your project onto the IB window, and then you can instantiate it.
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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: Instantiating Objects in Nib Files
      • From: Dietrich Epp <email@hidden>
References: 
 >Instantiating Objects in Nib Files (From: Dietrich Epp <email@hidden>)

  • Prev by Date: Re: Search Hard Drive
  • Next by Date: @try and @catch
  • Previous by thread: Instantiating Objects in Nib Files
  • Next by thread: Re: Instantiating Objects in Nib Files
  • Index(es):
    • Date
    • Thread