• 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
Finding myDocument from AppController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finding myDocument from AppController


  • Subject: Finding myDocument from AppController
  • From: John Nairn <email@hidden>
  • Date: Thu, 16 May 2002 14:19:45 -0600

In (my first) Cocoa app, I am now to the stage I want a menu command to run a dialog box relevant to the document in the current window. I added an AppController to the MainMenu.nib and set the target of a menu item to an action in that class. I can find the current main window with [NSApp mainWindow] and open a sheet on that window, but I do not see how to access the class in the myDocument.nib from the AppContoller in MainMenu.nib. I want the planned sheet to change some class variables in myDocument.

P.S.: This list has been great - very helpful and very fast. I am getting close to independence and maybe if being able to provide help back.

----------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page: http://www.mse.utah.edu
_______________________________________________
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: Finding myDocument from AppController
      • From: mmalcolm crawford <email@hidden>
    • Re: Finding myDocument from AppController
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: 2 Cocoa Method Questions
  • Next by Date: Re: Why?
  • Previous by thread: Re: self vs. [self class] in class methods: is there a difference?
  • Next by thread: Re: Finding myDocument from AppController
  • Index(es):
    • Date
    • Thread