New topic: 

Allowed File Locations

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

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        DaveS          Post subject: Allowed File LocationsPosted: Wed 
Oct 31, 2012 5:57 pm                                 
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4207
Location: San Diego, CA                I know this has been posted else where 
in this Forum, but I cannot seem to find a topic that addresess this in its 
entireity.

Under Lion (or perhaps Mt.Lion would be more accurate).
Exactly WHERE can I as a RS developer have my app write things such as 
Preferences (not in Plist format [don't ask]), database files, external 
documents etc... 

And conversely... where can I NOT (or shouldn't write them).

I'm not going for the Apple Store (yet).... but I want to at least make sure 
I'm consistent with future requirements.

Would appreciate it if someone could post a topic describing the requirements 
in a easy format... such as 

I'm mostly talking about Shared/Users  ~/Library  and other such locations as 
currently defined by SPECIALFOLDERS

Quote:Databases can be created in XXX and YYY

ZZZ is off-limits


instead of a link to an Apple webpage that requires interpetation (never have 
figured why they can't write in English  )      
_________________
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                npalardy          Post subject: 
Re: Allowed File LocationsPosted: Wed Oct 31, 2012 7:11 pm                      
 Real Software Engineer          
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7524
Location: Canada, Alberta, Near Red Deer                you can create files in 
~/Library/Application Support/<your app name>/

other than that you may run into issues UNLESS the user has selected it as the 
location to save a document/file created by your application

You should NOT write directly to the preferences - rather use CFPreferences or 
NSUserDefaults (available in MacOSLib & MBS plugins) and the API's they expose 
for you to use. They then call the OS functions that write to "the correct 
location in the correct way"      
_________________
My web site Great White Software
RBLibrary.com REALbasic learning  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 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