Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
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?



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.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.