• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How Do I get informed when -showHelp: has been called?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Line Drawing problem
  • Next by Date: Why is a button in a window not redrawn when I change its state?
  • Previous by thread: Re: How Do I get informed when -showHelp: has been called?
  • Next by thread: Re: Instance Variables of NSManagedObject Subclasses
  • Index(es):
    • Date
    • Thread