Page 1 of 1

GetHomeDirectory()

Posted: Wed Apr 18, 2012 4:33 am
by J. Baker
Ok, my app was just rejected because they said the default output was /Users/Guest/Desktop/. Which is set by GetHomeDirectory of course. On my system it returns /Users/jbaker/Desktop/ like it should. Why would it return guest? I'm assuming the tester person was signed on as a guest and didn't even use the option to change the directory as I did implement that in the app.

Re: GetHomeDirectory()

Posted: Wed Apr 18, 2012 6:42 am
by jace_stknights
?????? WTF? :(

I'm also using this function and it works fine. Perhaps you should use the "Documents" our "user login" dir? (Yep it is stupid... but sometimes...)

Re: GetHomeDirectory()

Posted: Wed Apr 18, 2012 7:04 am
by J. Baker
Yeah, I think the person testing the app just doesn't know what they're doing. I don't understand how people like this get positions they clearly are not qualified for. I guess I'll just have to wait for a response.

Re: GetHomeDirectory()

Posted: Wed Apr 18, 2012 9:02 am
by jamirokwai
Hi J.Baker,

had the same problem with my latest App. I am waiting for approval atm.
The tester mailed me: Don't prefill the destination folder.
Actually, they did tell me /Users/guest/Documents was not appropriate. D'oh!

Re: GetHomeDirectory()

Posted: Wed Apr 18, 2012 5:00 pm
by spacebuddy
You should sandbox your application, this will let you know if you
are using the correct directory for writing. This is also good practice
for the future.

I believe /Library/Container/Bundle Identifier/ is the proper place to write/read data for your program
if you are going to be distributing your apps to the app store.

Re: GetHomeDirectory()

Posted: Wed Apr 18, 2012 6:02 pm
by J. Baker
jamirokwai wrote:Hi J.Baker,

had the same problem with my latest App. I am waiting for approval atm.
The tester mailed me: Don't prefill the destination folder.
Actually, they did tell me /Users/guest/Documents was not appropriate. D'oh!
Yeah, I had it pre filled but the user also had the option to change it. Which whoever was testing didn't even try.
spacebuddy wrote:You should sandbox your application, this will let you know if you
are using the correct directory for writing. This is also good practice
for the future.

I believe /Library/Container/Bundle Identifier/ is the proper place to write/read data for your program
if you are going to be distributing your apps to the app store.
Yeah I would do that but the app for app data but it doesn't export anything except for what is being converted for the user.

Re: GetHomeDirectory()

Posted: Thu Apr 19, 2012 4:37 am
by jamirokwai
Hi J.Baker,

Apple approved my App after all, needing 5 versions ...
I only had to remove the prefilled Home-Directory. The String-Gadget is empty now. What a mess :?

Re: GetHomeDirectory()

Posted: Thu Apr 19, 2012 4:42 am
by J. Baker
jamirokwai wrote:Hi J.Baker,

Apple approved my App after all, needing 5 versions ...
I only had to remove the prefilled Home-Directory. The String-Gadget is empty now. What a mess :?
Glad to hear!

I just removed mine too and resubmitted. We'll see.

Re: GetHomeDirectory()

Posted: Mon Apr 23, 2012 12:12 pm
by jamirokwai
J. Baker wrote:
jamirokwai wrote:Hi J.Baker,

Apple approved my App after all, needing 5 versions ...
I only had to remove the prefilled Home-Directory. The String-Gadget is empty now. What a mess :?
Glad to hear!

I just removed mine too and resubmitted. We'll see.
Good luck :-)
I am satisfied now, as I had 15 downloads in 3 days... Now for the 15 per day :mrgreen:

Re: GetHomeDirectory()

Posted: Mon Apr 23, 2012 7:14 pm
by J. Baker
Awesome! :D