Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 29, 2011, 01:37 PM   #1
forcesteeler
macrumors regular
 
Join Date: Oct 2007
How do I Change the File System in XCode

My Application was rejected anyone know how do i change the file access read and write in XCode 4

Heres what apple said


2.30 Apps that do not comply with the Mac OS X File System documentation will be rejected

Jun 29, 2011 08:35 AM. From Apple.

2.30

The application is creating files in, writing to, or opening for Read/Write access the following location:

~/Library/Application Support/LawDocuments
forcesteeler is offline   0 Reply With Quote
Old Jun 29, 2011, 02:22 PM   #2
jtara
macrumors 65816
 
Join Date: Mar 2009
Here is the applicable standard. Not sure exactly what they are complaining about. There's no specific mention that applications should not write to this directory, though there's some implication that perhaps this is to be used only for files that are put there at installation time.

http://developer.apple.com/library/m...oPutFiles.html

Perhaps you've run afoul of the naming convention. If your application is not called "Law Documents", then that's likely the problem. Also, if you plan on coming out with additional applications, you probably should use your company name in the path. Something like:

~/Library/Application Support/My Company/My App/Law Documents

If these are files that your user creates, they almost certainly belong instead in:

~/Documents/My Company/My App/ or perhaps
~/Documents/My Company/My App/Law Documents

(The latter if your app creates some OTHER kind of documents as well).

As to the XCode 4 "how" (and the question you posed is really a meaningless question. There's no way to do this "in XCode 4". "In Objective-C", or "in C++", or "in Perl" makes sense... Xcode is just a project management and code editing tool...) how did you write them where you are writing them in the first place?

What Apple is saying is "write them somewhere else, not here!"
jtara is offline   0 Reply With Quote
Old Jun 29, 2011, 03:58 PM   #3
jiminaus
macrumors 65816
 
Join Date: Dec 2010
Location: Sydney
Quote:
Originally Posted by jtara View Post
If these are files that your user creates, they almost certainly belong instead in:

~/Documents/My Company/My App/ or perhaps
~/Documents/My Company/My App/Law Documents

(The latter if your app creates some OTHER kind of documents as well).
But I disagree with putting the documents in ~/Documents/My Company/My App. The only place they should be put is were is the user chooses to put them via the Save As panel. Programs should not pollute a user's ~/Documents, or from the other side, a user should be in complete control over ~/Documents.

If you don't want to allow your users to save their files where they choose, then don't store them in ~/Documents.
jiminaus is offline   0 Reply With Quote
Old Jun 29, 2011, 06:58 PM   #4
forcesteeler
Thread Starter
macrumors regular
 
Join Date: Oct 2007
My Question was how to correct the problem.

Do i just rename the Project file?
forcesteeler is offline   0 Reply With Quote
Old Jun 29, 2011, 07:09 PM   #5
balamw
Moderator
 
balamw's Avatar
 
Join Date: Aug 2005
Location: New England, USA
Quote:
Originally Posted by forcesteeler View Post
My Question was how to correct the problem.

Do i just rename the Project file?
Unlikely.

Is LwaDocuments a file or folder? Can you post the relevant code that creates it?

B
__________________
MBA (13" 1.7 GHz 128GB), UMBP (15" SD 2.8 GHz), UMB (13" 2.4 GHz), iMac (17" Yonah), 32GB iPad 3 WiFi+LTE, 64 GB iPad WiFi, 32 GB iPhone 5, Airport Extreme
balamw is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
How to make a file save on Xcode? OSX Buddy Mac Programming 11 Apr 21, 2014 02:28 PM
Xcode file output xcodeROOKIE Mac Programming 5 Oct 4, 2013 02:52 PM
cannot rename file names of folders, files, or change case of file extensions Sossity Mac Basics and Help 8 Apr 2, 2013 05:38 AM
xCode label text color change kushalashok Web Design and Development 1 Feb 15, 2013 05:22 AM
Run executable from Xcode External Build System Project bogatyr Mac Programming 1 Jun 28, 2012 11:07 AM

Forum Jump

All times are GMT -5. The time now is 08:58 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC