Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / May 2008



Tip: Looking for answers? Try searching our database.

Intel 10.4 test

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aaron Gray - 20 May 2008 17:08 GMT
Can you try this on Intel Mac OS X 10.4 to see if it works please :-

        http://www.aarongray.org/MacOSX/JavaScript/JSInterpreter

Many thanks in advance,

Aaron
glenn andreas - 21 May 2008 14:22 GMT
> Can you try this on Intel Mac OS X 10.4 to see if it works please :-
>
[quoted text clipped - 3 lines]
>
> Aaron

Two things:

1) The link doesn't down a file - and viewing the binary in a
web-browser doesn't really tell anything about being able to execute.

2) If you want to use a JavaScript interpreter from Cocoa, you might
want to check out the open sourced
http://projects.gandreas.com/jskit/index.html
which includes a command line interpreter as well as a framework that
allows you to easily embed an interpreter into a Cocoa app (and even
includes support for interactive consoles, syntax coloring editors,
etc...).  And it is known to work on 10.4 as well as 10.5 (both intel
and ppc).
Aaron Gray - 21 May 2008 17:35 GMT
>> Can you try this on Intel Mac OS X 10.4 to see if it works please :-
>>
[quoted text clipped - 8 lines]
> 1) The link doesn't down a file - and viewing the binary in a
> web-browser doesn't really tell anything about being able to execute.

Okay :(

> 2) If you want to use a JavaScript interpreter from Cocoa, you might
> want to check out the open sourced
[quoted text clipped - 3 lines]
> includes support for interactive consoles, syntax coloring editors,
> etc...).

I wanted to use Apples.

> And it is known to work on 10.4 as well as 10.5 (both intel
> and ppc).

3) Is anyone going to download an unknown exe from a newsgroup and run it;
god I feel dumb.

This is not actually the problem its code built by me on XCode works on one
Intel machine but not on another. I have a PPC machine and both Intel
machines are remote.

I was hoping a third test would sort of settle things a bit.

Thanks,

Aaron
glenn andreas - 22 May 2008 00:29 GMT
> > 2) If you want to use a JavaScript interpreter from Cocoa, you might
> > want to check out the open sourced
[quoted text clipped - 5 lines]
>
> I wanted to use Apples.

It does - it's a Cocoa wrapper around JavaScriptCore, providing a higher
level wrapper that makes it much easier to bridge your classes into
JavaScript.

> > And it is known to work on 10.4 as well as 10.5 (both intel
> > and ppc).
[quoted text clipped - 7 lines]
>
> I was hoping a third test would sort of settle things a bit.

Do you at least have the crash logs from the machines where it fails?  
That often is enough to figure things out.

One important thing about using JavaScriptCore is that it isn't actually
part of 10.4, but is found there if Safari 3.0 is installed (which I
believe automatically comes with 10.4.9 - though I don't remember for
sure what the first version was that automatically included it).  So if
any of the other machines is running a version of 10.4 that doesn't
include Safari 3.0, there will be no JavaScriptCore to use (which would
probably crash).  Again, a crash log could tell if that is the problem...
Aaron Gray - 22 May 2008 16:33 GMT
>> > 2) If you want to use a JavaScript interpreter from Cocoa, you might
>> > want to check out the open sourced
[quoted text clipped - 9 lines]
> level wrapper that makes it much easier to bridge your classes into
> JavaScript.

Okay, I also need to extend it with some extra functions, echo, include and
some basic file i/o.

>> > And it is known to work on 10.4 as well as 10.5 (both intel
>> > and ppc).
[quoted text clipped - 20 lines]
> include Safari 3.0, there will be no JavaScriptCore to use (which would
> probably crash).  Again, a crash log could tell if that is the problem...

Ah, that sounds like it. Where do I get the crash log ?

Does JSKit detect whether JavaScriptCore/Safai 3.0 is installed or not and
produce an human friendly error message ?

Thanks alot,

Aaron
glenn andreas - 25 May 2008 15:22 GMT
> >> > 2) If you want to use a JavaScript interpreter from Cocoa, you might
> >> > want to check out the open sourced
[quoted text clipped - 12 lines]
> Okay, I also need to extend it with some extra functions, echo, include and
> some basic file i/o.

Those are already included (with the ability to intercept where they go,
restrict include paths, etc...)

> Ah, that sounds like it. Where do I get the crash log ?

~/Library/Logs/CrashReporter/

> Does JSKit detect whether JavaScriptCore/Safai 3.0 is installed or not and
> produce an human friendly error message ?

Not currently, but that's a worthwhile addition.

One can also just set LSMinimumSystemVersion in your Info.plist file
Aaron Gray - 26 May 2008 20:25 GMT
>> >> > 2) If you want to use a JavaScript interpreter from Cocoa, you might
>> >> > want to check out the open sourced
[quoted text clipped - 18 lines]
> Those are already included (with the ability to intercept where they go,
> restrict include paths, etc...)

Oh, in Apple's or yours ?

>> Ah, that sounds like it. Where do I get the crash log ?
>
> ~/Library/Logs/CrashReporter/

Okay thanks.

>> Does JSKit detect whether JavaScriptCore/Safai 3.0 is installed or not
>> and
[quoted text clipped - 3 lines]
>
> One can also just set LSMinimumSystemVersion in your Info.plist file

Presumably that would outlaw Safari updates without system updates if such a
thing can happen ?

The remote BusError crash is not due to missing Safari Javascript :(

Still cannot sus it.

I will have serious look at your code as its probably the way to go on the
Mac.

Thanks,

Aaron
Aaron Gray - 28 May 2008 01:32 GMT
Okay its just the SDK you build with, selecting in XCode 'Project->Edit
Project Settings->Build' and 'Base SDK Path' selects the SDK under
'Developer/SDKs/'.

I feel dumb, should have got that sooner. Does this mean that apps written
for 10.4 and 10.5 must be compiled separately ?

How do apps like CyberDuck work accross OS versions ?

Aaron
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.