Menu/saving problem
Menu/saving problem
- Subject: Menu/saving problem
- From: "Paul N. Schatz" <email@hidden>
- Date: Tue, 29 Jul 2003 17:23:34 -0400
I've made a document based application. The initial window
contains a textView and some buttons. One of the buttons reads in
some text, and the window can be readily saved and reopened using
'Save' and 'Open' in the Main Menu. Another button opens a new window
from another nib whose File's Owner is a subclass of
NSWindowController. Subsequent work in this new window produces a
table. I wish to save this latter window.
If I go to the Main Menu, the 'Save' menu item is grayed out,
and I can't seem to activate it. So I dragged an NSMenu instance into
the nib which produces the table window. I create a 'save' menu
item. I wire the File's Owner to this new menu, and I wire the menu
item to the 'saveDocument' target. I then use some code to have this
new menu appear in the menu bar.
When I now attempt to use this new menu to save the table
window, the 'saveDocument' menu item is still grayed out, so I still
can't save the window. However, if I click in the still open
original window, this same menu item is active and works perfectly.
If I use the 'saveAllDocuments' target, this menu item
doesn't work at all. How do I go about saving the table window?
Paul
--
--
Paul Schatz
Chem Dept
University of Virginia
_______________________________________________
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.