realbasic-nug
[Top] [All Lists]

Re: Cross-Platform question

To: Realbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Cross-Platform question
From: Brad Hutchings <brad@componentx.com>
Date: Thu, 31 May 2012 10:50:45 -0700
Authentication-results: mx.google.com; spf=pass (google.com: domain of realbasic-nug-bounces@lists.realsoftware.com designates 74.124.194.228 as permitted sender) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; dkim=neutral (body hash did not verify) header.i=@componentx.com
Delivered-to: listarchive@realsoftware.com
Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=componentx.com; s=default; h=To:References:Message-Id:Content-Transfer-Encoding:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=bL/06EWImHQbaqVMfG8svrC9K5RcIJeqXc+Rv9qsaM0=; b=ACqNtImLagWtTA0VYuk8n6IXpAIHl4W/SiPQAhQKiTyNdNUyMdTD6dXptBSpD5yKw1kJ92bske5YMp0XEv+g1LXqi1OayaC1qgpM62lojvd7mXsmlhEuP0rIG93timj4;
In-reply-to: <378C18B0-7318-4ED4-83E1-6149A227DD2D@austin.rr.com>
References: <378C18B0-7318-4ED4-83E1-6149A227DD2D@austin.rr.com>
Reply-to: Realbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
I bet "Program Files" has a space in it. But the real issue here is that you 
should find the path to your app, then navigate from there. 

        fi = new FolderItem

"fi" will have the path to the directory containing your app. From there, use 
fi.Child("docs"). And that's kinda what it looks like you're doing on the Mac.

Also, take the time to find items in the path one at a time, make sure they 
exist, etc. This will save you from NilObjectExceptions you'll just have to 
track down later when something gets installed wrong.

HTH,

-Brad

On May 31, 2012, at 10:26 AM, Albert Wallace wrote:

> When I put a folder on a Windows desktop containing my application and it's 
> Libs folder and it's documentation folder (containing an HTMLviewer and 
> graphics), created on a Mac, I can access the docs folder with:
> 
> f = GetFolderItem("docs").child("MyApplicationDocs.html")
> 
> But after installing using InnoSetup, I get an IOException when I try to open 
> the documentation, although I can verify that all the files are with the .exe 
> in it's folder in Program Files.
> 
> I've tried using:
> 
> f = 
> GetFolderItem("C:\ProgramFiles\MyApplicationFolder\docs\MyApplicationDocs.html")
> 
> with no luck. Not so sure about the quotation marks, but RB wouldn't let me 
> compile without them.
> 
> Does anyone understand what I need to do differently?
> 
> Thanks for any help!


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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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