[futurebasic] Re: [FB] Nav Services

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2001 : Group Archive : Group : All Groups

From: Heather Donahue <heatherd@...>
Date: Thu, 11 Oct 2001 13:26:14 -0700
At 10:20 AM -0700 on 10/11/01, Otto Schlosser wrote:


>At 9:50 PM -0700 10/10/01, Craig Hoyt wrote:
>>Thanks RC worked like a charm. Two questions.
>>    1-  Where's this documented? I searched hi and low!
>>    2- Nav Services Library in my OS 9.1 has the name'NSL UI Library' so why
>>or how does fn FBTestForLibrary("NavigationLib") recognize it.
>
>Actually, the Nav calls are in the System file in 9.1. That's why 
>you always use the NavServicesAvailable() call, rather than check 
>for the library. The UI lib is for things like Network Browser.

NavServicesAvailable() isn't available to us poor FB folk.  It's a C 
preprocessor macro defined in the Universal Headers.

It looks like it checks for the existence of the NavigationLib then 
calls the library function NavServicesCanRun()  Perhaps this is a 
better way of checking if NavServices is available.

Still, I'm not sure why Craig needs to check for the library himself 
when the runtime does it for you.  As I mentioned before, just set 
gFBUseNavServices to _zTrue and the runtime will do the rest for you. 
Of course maybe he isn't using the standard runtime open and save 
dialogs.
-- 
Heather Donahue
--
"To strive, to seek, to find, and not to yield."
	-- Lord Alfred Tennyson