| View previous topic :: View next topic |
| Author |
Message |
mlarue
Joined: 20 Sep 2007 Posts: 4
|
Posted: Thu Sep 20, 2007 5:15 pm Post subject: Mac stub? |
|
|
Hi, do you have a Mac stub of the plugin available?
Makes life a little easier when programming on a Mac (although obviously this will only be used on a PC).
Thanks! |
|
| Back to top |
|
 |
mylesw Site Admin

Joined: 20 Dec 2004 Posts: 319 Location: Scottsdale, Arizona
|
Posted: Thu Sep 20, 2007 10:39 pm Post subject: |
|
|
We don't have one for this, but its easy enough to make one. Check 4D NUG for instructions.
Myles _________________ Myles Wakeham
Director of Engineering
Tech Solutions, USA Inc.
myles@techsol.org |
|
| Back to top |
|
 |
mlarue
Joined: 20 Sep 2007 Posts: 4
|
Posted: Thu Sep 20, 2007 11:47 pm Post subject: |
|
|
| mylesw wrote: | We don't have one for this, but its easy enough to make one. Check 4D NUG for instructions.
Myles |
Hi Myles,
Thanks for your quick reply. I did do just that; however, the template "stub" files don't seem to be available anymore. There's a good reference on how to do this from 4DToday:
http://4dtoday.com/archives?g=tips&s=one&id=59
However, the stub is on the 4DZine site, which has died and gone away. Rob doesn't seem to have these on his site, either. (As you can see, I did hunt around a bit... )
I tried simply running the Win4DX plugin files through the 4D Transporter application to make a Mac plugin; this does seem to work, as it shows the command as tokenized in the method editor. It appears to compile without error, too. (Obviously, the function doesn't work on the Mac, but this is where I do most of my development work, so I just need to get this to compile. In the code, I check to see if it's on Windows before executing the command.)
Is this going to work, or am I doing something horribly wrong with this?
(And if anyone's got a Mac stub handy and would like to post or send it, I'd be much obliged...)
Cheers!
Michael Larue |
|
| Back to top |
|
 |
mylesw Site Admin

Joined: 20 Dec 2004 Posts: 319 Location: Scottsdale, Arizona
|
Posted: Fri Sep 21, 2007 1:27 am Post subject: |
|
|
Have you tried to wrap the calls in an EXECUTE statement (so that the call is to a string rather than a direct call)? This would allow you to get past the compiler restrictions.
Myles _________________ Myles Wakeham
Director of Engineering
Tech Solutions, USA Inc.
myles@techsol.org |
|
| Back to top |
|
 |
mlarue
Joined: 20 Sep 2007 Posts: 4
|
Posted: Fri Sep 21, 2007 11:07 am Post subject: |
|
|
| mylesw wrote: | Have you tried to wrap the calls in an EXECUTE statement (so that the call is to a string rather than a direct call)? This would allow you to get past the compiler restrictions.
Myles |
Hi Myles,
Good idea! If my original plan doesn't work, I'll try this next.
(Fortunately there's only a single line of code that has to be handled in this manner, so it's quite easy to manage.)
Thanks for your assistance,
Michael Larue |
|
| Back to top |
|
 |
|