realbasic-plugins
[Top] [All Lists]

Re: Is app MachO or CFM

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Is app MachO or CFM
From: Alexander Cohen <alex at toomuchspace dot com>
Date: Tue, 24 Aug 2004 12:47:37 -0400
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <A1317A16-F5E9-11D8-A03A-000A95B947DC at toomuchspace dot com> <D5D0D7D0-F5EB-11D8-BED1-000A277A7E3C at einhugur dot com>


You could I suppose use the dynamic API to check if GetFolderItem() and App.ExecutableFile.Parent return the same folder item or not.


Well thats a bit much just to know the format of the executable. I would think RS would put it in the plugin sdk since in rb we do have TARGET_MACHO.


Or you could do it the simple and better way, have a Mach-O segment in your plugin, then when in the Mach-O segment then you are always in a Mach-O app and when in the CFM segment then you are always in CFM app.

Why you would want to know if the App is CFM or Mach-O though is beyond me.

Because im passing function pointers from the rb app to my plugin, and i need to convert the ptr to a correct format.

Alex

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

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

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