[quote=79700:@Thomas Tempelmann]Mike,
Pleaase note that there is no “Mac OS Lib”. There is, however, a “macoslib” (or MacOSLib).
Also, I believe you have a coding error here:
#if TargetCocoa then
That should be:
#if TargetCocoa = true then
or, even better:
#if (TargetCocoa = true) = true then
You can never use too many of those boolean tests!
And I see that you stay away from using the not operator, that’s good. Nobody want to see things like this:
if not (fAfter.exists = true) then
(sorry, couldn’t resist)[/quote]
Thomas
This is interesting. I was taught that
#if TargetCocoa then
or
#if not TargetCocoa
was the correct syntax.
I use this syntax exclusively in my programs and they work fine. In fact, when I see a “if bval = true then” I find it very odd.
Out of interest, why do you think you should use this syntax and why not use an “if not … then” syntax?