On Mar 16, 2006, at 6:50 PM, Garth Hjelte wrote:
At 04:19 PM 3/16/2006 -0500, you wrote:
> Thanks - related question. What about Debug mode? Is this always
> necessary then?
>
> #if DebugBuild
> Soft Declare Sub Foo Lib "FooLib.dylib" ()
> #else
> Soft Declare Sub Foo Lib
> "@executable_path/../Frameworks/FooLib.dylib" ()
> #endif
With soft declares, perhaps not. You might try the following. Put
FooLib in the same folder as the project. Then in the App.Open event
handler, copy FooLib into the debug app bundle. And let me know if it
works.
Sounds pretty hacky.
The real question to me would be: how does REALBasic regard
"FooLib.dylib" as where it is? The docs are sketchy, it just says "if
it is on your system." What does that mean? On Windows you have a set
way of doing this: same folder, system folder, environment path.
My solution actually is
#if DebugBuild
Soft Declare Sub Foo Lib "@executable_path/../../../FooLib.dylib" ()
#else
Soft Declare Sub Foo Lib
"@executable_path/../Frameworks/FooLib.dylib" ()
#endif
And make sure I have all my dylib(s) in the same folder as my .rbp
file.
Because the IDE provides no support for adding items to a bundle at
build time, any solution is a hack. I'm sure you'll find one that you
like.
--------------
Charles Yeomans
_______________________________________________
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>
From Fri 17 Mar 2006 18:48:41 +0200
Return-Path: <realbasic-plugins-bounces at lists dot realsoftware dot com>
Received: from lists.realsoftware.com (209.198.132.125) by realsoftware.com
with ESMTP (Eudora Internet Mail Server 3.1.3);
Fri, 17 Mar 2006 11:49:00 -0600
Received: from lists.realsoftware.com (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP
id 1AE9F11750E9; Fri, 17 Mar 2006 11:48:54 -0600 (CST)
X-Original-To: realbasic-plugins at lists dot realsoftware dot com
Delivered-To: realbasic-plugins at lists dot realsoftware dot com
Received: from d101.x-mailer.de (d101.x-mailer.de [212.162.12.2])
by lists.realsoftware.com (Postfix) with ESMTP id 48EFE11750D3
for <realbasic-plugins at lists dot realsoftware dot com>;
Fri, 17 Mar 2006 11:48:42 -0600 (CST)
Received: from [127.0.0.1] (helo=localhost.localdomain)
by d101.x-mailer.de with esmtp (Exim 4.50) id 1FKJ44-0000oi-SC
for realbasic-plugins at lists dot realsoftware dot com;
Fri, 17 Mar 2006 18:48:40 +0100
MIME-Version: 1.0
Message-Id: <93106 dot 9420724274 at d101 dot x-mailer dot de>
Content-Type: text/plain;charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
To: realbasic plugins <realbasic-plugins at lists dot realsoftware dot com>
From: joerg at hopmann dot net
Date: Fri, 17 Mar 2006 18:48:41 +0200
Subject: out of office
X-BeenThere: realbasic-plugins at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot
com>
Sender: realbasic-plugins-bounces at lists dot realsoftware dot com
Errors-To: realbasic-plugins-bounces at lists dot realsoftware dot com
I am out of the office on holiday until Monday 27th March. I will not be
checking emails regularly during this time, but will come back to your matter
as soon as possible.
Best regards,
Joerg Hopmann
_______________________________________________
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>
From Fri 17 Mar 2006 18:48:55 +0200
Return-Path: <realbasic-plugins-bounces at lists dot realsoftware dot com>
Received: from lists.realsoftware.com (209.198.132.125) by realsoftware.com
with ESMTP (Eudora Internet Mail Server 3.1.3);
Fri, 17 Mar 2006 11:49:12 -0600
Received: from lists.realsoftware.com (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP
id D8D4311750FE; Fri, 17 Mar 2006 11:49:06 -0600 (CST)
X-Original-To: realbasic-plugins at lists dot realsoftware dot com
Delivered-To: realbasic-plugins at lists dot realsoftware dot com
Received: from d101.x-mailer.de (d101.x-mailer.de [212.162.12.2])
by lists.realsoftware.com (Postfix) with ESMTP id 4497C11750EB
for <realbasic-plugins at lists dot realsoftware dot com>;
Fri, 17 Mar 2006 11:48:56 -0600 (CST)
Received: from [127.0.0.1] (helo=localhost.localdomain)
by d101.x-mailer.de with esmtp (Exim 4.50) id 1FKJ4J-0000rl-8E
for realbasic-plugins at lists dot realsoftware dot com;
Fri, 17 Mar 2006 18:48:55 +0100
MIME-Version: 1.0
Message-Id: <10761 dot 5545465709 at d101 dot x-mailer dot de>
Content-Type: text/plain;charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
To: realbasic plugins <realbasic-plugins at lists dot realsoftware dot com>
From: joerg at hopmann dot net
Date: Fri, 17 Mar 2006 18:48:55 +0200
Subject: out of office
X-BeenThere: realbasic-plugins at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot
com>
Sender: realbasic-plugins-bounces at lists dot realsoftware dot com
Errors-To: realbasic-plugins-bounces at lists dot realsoftware dot com
I am out of the office on holiday until Monday 27th March. I will not be
checking emails regularly during this time, but will come back to your matter
as soon as possible.
Best regards,
Joerg Hopmann
_______________________________________________
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>
From Fri 17 Mar 2006 18:49:07 +0200
Return-Path: <realbasic-plugins-bounces at lists dot realsoftware dot com>
Received: from lists.realsoftware.com (209.198.132.125) by realsoftware.com
with ESMTP (Eudora Internet Mail Server 3.1.3);
Fri, 17 Mar 2006 11:49:22 -0600
Received: from lists.realsoftware.com (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP
id 605341175114; Fri, 17 Mar 2006 11:49:17 -0600 (CST)
X-Original-To: realbasic-plugins at lists dot realsoftware dot com
Delivered-To: realbasic-plugins at lists dot realsoftware dot com
Received: from d101.x-mailer.de (d101.x-mailer.de [212.162.12.2])
by lists.realsoftware.com (Postfix) with ESMTP id 041291175100
for <realbasic-plugins at lists dot realsoftware dot com>;
Fri, 17 Mar 2006 11:49:08 -0600 (CST)
Received: from [127.0.0.1] (helo=localhost.localdomain)
by d101.x-mailer.de with esmtp (Exim 4.50) id 1FKJ4V-0000tx-0G
for realbasic-plugins at lists dot realsoftware dot com;
Fri, 17 Mar 2006 18:49:07 +0100
MIME-Version: 1.0
Message-Id: <93982 dot 6516042562 at d101 dot x-mailer dot de>
Content-Type: text/plain;charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
To: realbasic plugins <realbasic-plugins at lists dot realsoftware dot com>
From: joerg at hopmann dot net
Date: Fri, 17 Mar 2006 18:49:07 +0200
Subject: out of office
X-BeenThere: realbasic-plugins at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot
com>
Sender: realbasic-plugins-bounces at lists dot realsoftware dot com
Errors-To: realbasic-plugins-bounces at lists dot realsoftware dot com
I am out of the office on holiday until Monday 27th March. I will not be
checking emails regularly during this time, but will come back to your matter
as soon as possible.
Best regards,
Joerg Hopmann
_______________________________________________
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>
|