[futurebasic] Re: [FB] [FB^3] NavServices (wasNewPtrClear question)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2000 : Group Archive : Group : All Groups

From: "Brian J. Hughes" <BrianHughes@...>
Date: Tue, 20 Jun 2000 00:29:42 -0700
At 5:01 PM +1000 on 6/20/00, Jamin wrote:


>On Monday, 19 June 2000, Brian J. Hughes <BrianHughes@...> wrote:
>>I'm trying to implement a 'SaveAs' function that uses the Navigation
>  >Services from MacOS 8.5 and up.
>>

[SNIP]

>If in doubt, copy the runtime:
>
>dim as NavDialogOptions Options
>
>err = FN NavGetDefaultDialogOptions(#@Options)

I don't have that in my runtime.  That must be with the new release.

I figured out what to do though.

The ToolBox Converter created this:

TOOLBOX FN NavGetDefaultDialogOptions (@NavDialogOptions) = OSErr

Since my variable was already a pointer I just made it this:

TOOLBOX FN NavGetDefaultDialogOptions (LONG) = OSErr

Works fine.

But your suggestion reminded me to do the '#' in another call I was 
having trouble with.  Now maybe I can finish the SaveAs function, the 
problem was with a call to 'FN FSpGetFInfo ( #pFileSpec, fileInfo )' 
which now works.

Does anyone know if there is a rhyme or reason to using '#' for 
ToolBox calls?  There has to be a rule for when to use it or not.

Thanks,

Brian Hughes