Getting the FirstResponder
Getting the FirstResponder
- Subject: Getting the FirstResponder
- From: Phillip Hutchings <email@hidden>
- Date: Sun, 27 Oct 2002 17:26:09 +1300
I have a multi-document application with two NSTableViews. One table is
in the document and contains a list of actions, the other in a panel
that comes from the application's Nib, and contains a list of potential
actions.
I want to be able to click a button on the panel and update the
selected rows in the main table to the action selected in the panel.
The easiest way I can see is send a message to the FirstResponder to
get the WindowController subclass of the front window, which would then
get the numbers of the selected rows and pass them down to the document
to update.
Is this the best way? If so, how do I get the frontmost
WindowController. I can get the frontmost document, but that doesn't
help much as each document may have several view in the future, which
may not have the table in. If not, how should I do it?
-------------------------------
Phillip Hutchings
http://www.sitharus.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.