• 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: Dietrich Epp <email@hidden>
  • Date: Sat, 15 Nov 2003 23:52:57 -0800

On Nov 15, 2003, at 11:23 PM, mmalcolm crawford wrote:


On Nov 15, 2003, at 10:12 PM, Dietrich Epp wrote:

I already tried dragging the NSDocumentController header on (strange that the actions aren't there by default), and I'm not using a subclass.

Is there any particular reason, then, for trying to instantiate it in the nib? Just send messages to it programatically:
[NSDocumentController sharedDocumentController]
(*As far as I can tell*, all the action methods it implements should be handled automatically.)

I wanted to put it in the nib so I could make nib connections to it. Then, when I subclassed it, I wouldn't have to change that part. It's not important.

And no, the action methods aren't automatic... something has to connect the Save menu command to something. For now I'll just connect it to the first responder.
_______________________________________________
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: mmalcolm crawford <email@hidden>
References: 
 >Instantiating Objects in Nib Files (From: Dietrich Epp <email@hidden>)
 >Re: Instantiating Objects in Nib Files (From: Shaun Wexler <email@hidden>)
 >Re: Instantiating Objects in Nib Files (From: Dietrich Epp <email@hidden>)
 >Re: Instantiating Objects in Nib Files (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Instantiating Objects in Nib Files
  • Next by Date: Sending keyboard events
  • Previous by thread: Re: Instantiating Objects in Nib Files
  • Next by thread: Re: Instantiating Objects in Nib Files
  • Index(es):
    • Date
    • Thread