Re: How Do I get informed when -showHelp: has been called?
Re: How Do I get informed when -showHelp: has been called?
- Subject: Re: How Do I get informed when -showHelp: has been called?
- From: Ulf Dunkel <email@hidden>
- Date: Mon, 04 Jul 2011 16:57:34 +0200
- Organization: invers Software & DSD.net
Thank you all for pointing me to the solution of my question.
My first thought was that you could change the target of the menu item
so that it calls your own method, then call the original
showHelp method with something like:
[NSApp showHelp:sender]
This is what I did now, using an own -myShowHelp: method which calls
[NSApp showHelp:sender], when other things have been prepared. This of
course opens the Help Viewer. No need to subclass NSApplication and to
override showHelp: at all.
- (IBAction)myShowHelp:(id)sender
{
[... do some stuff];
[NSApp showHelp:sender];
[... do some other stuff];
}
---Ulf Dunkel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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