New topic: 

Where to put my RSD

<http://forums.realsoftware.com/viewtopic.php?t=46022>

         Page 1 of 1
   [ 6 posts ]                 Previous topic | Next topic          Author  
Message        cherub          Post subject: Where to put my RSDPosted: Thu Nov 
22, 2012 2:45 pm                         
Joined: Tue Aug 21, 2012 9:20 am
Posts: 7                I'm an ex VB.Net Windows developer trying to deploy 
first RB Mac app.

App runs perfectly on Windows. When try to run on Mac I get 'Cannot connect to 
database' error message

I have tried placing my RSD file in the MacOS folder, the Frameworks folder and 
the Resources folder - makes no difference

Can anyone tell me where it is supposed to be on a Mac and suggestions for what 
I might be doing wrong?

Thanks   
                             Top                timhare          Post subject: 
Re: Where to put my RSDPosted: Thu Nov 22, 2012 3:27 pm                         
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 11829
Location: Portland, OR  USA                You should put the database 
somewhere else on ALL platforms.  Do not put a writable file in the application 
folder.

Use SpecialFolder.Documents for "user" files - anything you let the user select 
a name.

Use SpecialFolder.ApplicationData for files you don't want the user to 
manipulate directly.  Create a subfolder for your company/app.   
                             Top                cherub          Post subject: 
Re: Where to put my RSDPosted: Thu Nov 22, 2012 3:35 pm                         
Joined: Tue Aug 21, 2012 9:20 am
Posts: 7                Thx for replying

So do you mean that for both Windows and Mac I should create a new folder to 
home this RSD file and then reference that folder when opening the RSD database?

(sorry to be slow on the uptake but Mac is totally new to me - and the App 
folder structure takes some getting used to!)   
                             Top                timhare          Post subject: 
Re: Where to put my RSDPosted: Thu Nov 22, 2012 6:16 pm                         
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 11829
Location: Portland, OR  USA                Yes, you should store the database 
file in one of those locations (probably ApplicationData) and point a 
folderitem there when you open the database.   
                             Top                DaveS          Post subject: 
Re: Where to put my RSDPosted: Thu Nov 22, 2012 8:51 pm                         
        
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4292
Location: San Diego, CA                While on the MAC and APP is truly a 
folder.... your best bet is.. ."FORGET THAT"... 
don't worry about the contents, don't try to change the contents, don't add 
anything to it

(yes there are circumstances where it is "ok".... but active files such as 
databases is not one of them)      
_________________
Dave Sisemore
MacPro, OSX Lion 10.7.4 RB2012r1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                Bimal          Post subject: 
Re: Where to put my RSDPosted: Fri Nov 23, 2012 12:37 am                        
 
Joined: Mon Jan 16, 2012 8:08 am
Posts: 145
Location: India                Yes u can store your rsd file in  the 
Specialfolder.applicationdata folder..   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 6 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to