realbasic-plugins
[Top] [All Lists]

Re: RegisterModule or class, AFTER PluginEntry()

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: RegisterModule or class, AFTER PluginEntry()
From: Jonathan Johnson <jonj at realsoftware dot com>
Date: Wed, 12 Jan 2005 04:48:51 -0600
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <BE0AC566 dot 2709B%sunshine at public dot kherson dot ua>
Ruslan Zasukhin wrote:
On 1/12/05 12:04 PM, "James Milne" <james dot milne at mac dot com> wrote:


It should be possible to have the plugin find the parent folder for the
application it is running inside.

If you call:

ProcessInfoRec curProcessInfo;
GetProcessInformation( kCurrentProcess, &curProcessInfo );

you can then retrieve an FSSpec for the current process out of the
ProcessInfoRec.


I think I will try dynamic access to RB's GetFolderItem()
Then this will be easy cross-platform way

Plus, there's REALGetProjectFolder (or similar) which you can use to determine where the project is at when not in the runtime (REALinRuntime() is false).

HTH,
Jon
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>