On 29 Jun 2011, at 14:22, Ulf Dunkel wrote:

> I would really like to get a hint on this. Even a simple "not possible" would 
> help. Thank you. :-)
> 
> - - - - -
> 
> Am 27.06.2011 22:58, schrieb Ulf Dunkel:
>> In a simple app of mine, I use the standard Help menu and MyApp Help
>> menu item, which is bound to -showHelp:.
>> 
>> I would like to have my AppDelegate being informed when the Help Viewer
>> has been launched and opened from this menu item.
>> 
>> It seems as if the method -showHelp: cannot be overridden. Which other
>> way can I use to receive any information when -showHelp: has been called?
>> 
>> TY in advance,
>> ---Ulf Dunkel



I'm curious what you're trying to achieve here.


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 still might not actually display the help viewer 
for example if it had been removed from the system, or if something made it 
crash before it displayed.
I'm not sure what happens in those cases (an error in the log, or does it 
display an error alert?)
Not very likely perhaps though.


If you have to be more certain you might be able to view the active process 
list and observe
whether it contained the help viewer after the call to showHelp.

Alternatively maybe run a web server inside your app and make the help page 
load some object from it?

It depends on how certain you want to be I suppose. :-)

Perhaps others might have better ideas or could suggest another way of doing it.

Angus_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to