Re: Responder chain vs find panel
Re: Responder chain vs find panel
- Subject: Re: Responder chain vs find panel
- From: Paul Collins <email@hidden>
- Date: Mon, 4 Dec 2006 19:42:03 -0800
I've posted a complete project that illustrates my problem.
Specifically:
When the find panel is key (in front), Edit->Find->Find Next (and
other Find submenu items) is disabled.
http://www.gracion.com/test/FindPanel.dmg
To reproduce:
1. Build and run the app
2. Choose Edit->Find->Find... (opens the panel)
3. Choose Edit->Find->Find Next (only its disabled)
Any suggestions as how to validate/enable these items?
Thanks
--Paul Collins
On Dec 4, 2006, at 4:12 PM, Paul Collins wrote:
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
** 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