• 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 to program the help button?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to program the help button?


  • Subject: Re: How to program the help button?
  • From: matt neuburg <email@hidden>
  • Date: Thu, 22 Jul 2004 17:47:00 -0700

On Thu, 22 Jul 2004 22:26:31 +0200, Ken Garden <email@hidden> said:
>On Thu, 22 Jul 2004 07:22:58 -0600, Nick Zitzmann <email@hidden>
wrote:
>>
>> Did you assign it an action?
>
>Yes, I used the function posted in my initial email. So the source
>code looks like this:
>
>- (IBAction)showHelp:(id)sender
>{
> AHGotoMainTOC("Button Help");
>}
>
>It actually builds, but the app crashes when I click on that help
>button.

(1) But "Button Help" is not an AHTOCType. The only possible values are 0
and 1 (hint: you want 0). Not to mention the fact that "Button Help" is not
even a Cocoa string. In other words even if a function took a CFStringRef
you'd want to say @"Button Help".

Also, (2) sorry to ask the obvious, but have you actually constructed Apple
Help for your app? You are asking your help book to open, so do you *have* a
help book? Did you index it, etc.?

m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide! NOW SHIPPING...! (Finally.)
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Drawing strings at 20fps
  • Next by Date: Re: forcing a dialog to be the active (front) window
  • Previous by thread: Re: How to program the help button?
  • Next by thread: X windows display and fast user switching
  • Index(es):
    • Date
    • Thread