Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Dec 17, 2018 10:01 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Where to put my RSD
PostPosted: Thu Nov 22, 2012 2:45 pm 
Offline

Joined: Tue Aug 21, 2012 9:20 am
Posts: 9
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
 Profile  
Reply with quote  
 Post subject: Re: Where to put my RSD
PostPosted: Thu Nov 22, 2012 3:27 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
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
 Profile  
Reply with quote  
 Post subject: Re: Where to put my RSD
PostPosted: Thu Nov 22, 2012 3:35 pm 
Offline

Joined: Tue Aug 21, 2012 9:20 am
Posts: 9
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
 Profile  
Reply with quote  
 Post subject: Re: Where to put my RSD
PostPosted: Thu Nov 22, 2012 6:16 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
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
 Profile  
Reply with quote  
 Post subject: Re: Where to put my RSD
PostPosted: Thu Nov 22, 2012 8:51 pm 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
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
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: Where to put my RSD
PostPosted: Fri Nov 23, 2012 12:37 am 
Offline

Joined: Mon Jan 16, 2012 8:08 am
Posts: 161
Location: India
Yes u can store your rsd file in the Specialfolder.applicationdata folder.:).


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group