Finding myDocument from AppController
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.