Responder chain vs find panel
Responder chain vs find panel
- Subject: Responder chain vs find panel
- From: Paul Collins <email@hidden>
- Date: Mon, 4 Dec 2006 16:12:54 -0800
I'm having trouble getting my Find submenu items to validate, enable,
and dispatch events when I have a nonmodal Find panel open in my
NSDocument-based app.
I've implemented a custom find panel used to find in an array of
custom objects represented in an NSTableView. To make this work, the
find panel's buttons and text field target the custom controller of
the find panel, which calls [NSApp mainWindow] to pass the find
command to the correct document.
The Find submenu items in my mainMenu.nib target First Responder.
These validate and operate properly, reaching -
performFindPanelAction: in my NSDocument subclass. The document
subclass appears in the normal responder chain as a delegate of the
NSTableView when it is first responder (I think that's why, at least).
When the Find panel is opened, all the Find submenu items are
disabled, and I can't find which object, if any, is receiving -
validateMenuItem messages for the items. I suspect it's the
NSTextView in my
My document no longer gets them, nor does my find panel controller,
or even a diagnostic subclass of the find panel (NSPanel).
Where did the validation messages go, and how do I enable these
items? Should I give up and manually enable them when the find panel
is open?
--Paul Collins
** Gracion Software LLC http://www.gracion.com/
** Tel: +1 (541) 488-3488 iChat/AIM/Skype: gracionsoft
** DigiTunnel 1.4 PPTP/VPN client for OS X
** Pronto Patent - search/download US patents fast
** And check out: http://www.opendoor.com/doorstop/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden