Where is the entry point?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Where is the entry point?

Jeff M.
Completely novice question...

Since I don't have the pro version of Dolphin (yet), I don't have a
good idea of how the final EXE is made. I'd imagine that the Worksheet
acts as the entry point, but I have no way of confirming this. But,
it's also possible that there is a specific object that gets created on
startup? Could someone give me a rough idea of what the entry point to
a ST application is?

Thanks!

Jeff M.


Reply | Threaded
Open this post in threaded view
|

Re: Where is the entry point?

Ian Bartholomew-21
Jeff,

> startup? Could someone give me a rough idea of what the entry point to
> a ST application is?


When you deploy an application you would usually add an extra class as a
subclass of RuntimeSessionManager (or ConsoleSessionManager) and you can
specify this class as part of the deployment process.  This class should
have a #main method and that will normally be your entry point.  If needed
you can access the command line from there and would then, normally, open up
your main Shell view.

--
Ian

Use the Reply-To address to contact me (limited validity).
Mail sent to the From address is ignored.


Reply | Threaded
Open this post in threaded view
|

Re: Where is the entry point?

Jeff M.
In reply to this post by Jeff M.
Simple enough. Thank you. :-)

Jeff M.


Reply | Threaded
Open this post in threaded view
|

Re: Where is the entry point?

Blair McGlashan-4
In reply to this post by Jeff M.
"Jeff M." <[hidden email]> wrote in message
news:[hidden email]...
> Completely novice question...
>
> Since I don't have the pro version of Dolphin (yet), I don't have a
> good idea of how the final EXE is made. I'd imagine that the Worksheet
> acts as the entry point, but I have no way of confirming this. But,
> it's also possible that there is a specific object that gets created on
> startup? Could someone give me a rough idea of what the entry point to
> a ST application is?
>

Dolphin apps kick off in SessionManager. The application level entry point
is effectively the #main method, which is called on the main UI thread. If
you want to understand the whole startup sequence start browsing from
SessionManager>>onStartup:. Bear in mind that if you modify this, you might
very well render your image unstartable and have to start with a new one.

Regards

Blair