Responder chain question
Responder chain question
- Subject: Responder chain question
- From: Darrin Cardani <email@hidden>
- Date: Mon, 6 Oct 2003 10:12:41 -0500
I have several windows that represent a single document in my
application. (It involves editing video, so it has a timeline window,
a window with the movie in it, etc., sort of like Final Cut Pro does.)
I've added a menu item to the Window menu for showing/hiding the
various windows. It's action is a method in my document class (such
as -showTimelineWindow:).
When the app initially runs, it opens the various windows, and the
menu items I have set up work fine, even as I switch windows. So if
the timeline window is in front, the menu item is still enabled. If
the movie window comes to the front, the menu item is still enabled.
However, if the user closes a window (I have it set not to release it
in IB), then later shows it again using the menu item, when the newly
shown window is in front, the menu item is no longer enabled. It
seems as if the window isn't getting put back into the responder
chain correctly. My "show" method just does this:
[ timelineWindow makeKeyAndOrderFront:sender ];
Is there something special I need to do to get it to work like it
does initially, where when any of the windows related to the document
are in front, the menu items work properly?
Thanks,
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<
http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
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.