Mac App Store

6 views
Skip to first unread message

Hector

unread,
Oct 14, 2011, 6:21:40 AM10/14/11
to wx-users
I'm pleased to announce that Coollector Movie Database is available on
the Mac App Store:

http://itunes.apple.com/us/app/coollector-movie-database/id467592179?ls=1&mt=12

If you're considering bringing your app to the Mac App Store, then go
for it ! Visibly Apple doesn't have any issues with wxWidgets
programs.

The only advice I could give you is not to use wxConfigBase to store
your program settings, because the App Store's sandboxing forbids to
write to "~/Library/Preferences". That's about all I can think of.


Many thanks to the wxWidgets community ! Special thanks to Vadim
Zeitlin and Stefan Csomor !

Vadim Zeitlin

unread,
Oct 16, 2011, 10:07:35 AM10/16/11
to wx-u...@googlegroups.com, Stefan Csomor
On Fri, 14 Oct 2011 03:21:40 -0700 (PDT) Hector <Hec...@coollector.com> wrote:

H> I'm pleased to announce that Coollector Movie Database is available on
H> the Mac App Store:
H>
H> http://itunes.apple.com/us/app/coollector-movie-database/id467592179?ls=1&mt=12
H>
H> If you're considering bringing your app to the Mac App Store, then go
H> for it ! Visibly Apple doesn't have any issues with wxWidgets
H> programs.

This is indeed great news!

H> The only advice I could give you is not to use wxConfigBase to store
H> your program settings, because the App Store's sandboxing forbids to
H> write to "~/Library/Preferences". That's about all I can think of.

We definitely should modify wxConfig to behave in app-store-compatible way
by default. Stefan, what would be the best location for the user config
files according to Apple rules?

Thanks,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/

Stefan Csomor

unread,
Oct 16, 2011, 10:34:44 AM10/16/11
to Vadim Zeitlin, wx-u...@googlegroups.com
Hi

>H> The only advice I could give you is not to use wxConfigBase to store
>H> your program settings, because the App Store's sandboxing forbids to
>H> write to "~/Library/Preferences". That's about all I can think of.
>
> We definitely should modify wxConfig to behave in app-store-compatible
>way
>by default. Stefan, what would be the best location for the user config
>files according to Apple rules?

actually I should finally complete my plist compatible prefs store so that
it can be used as a replacement, not only on iOS where but also on OSX.
Because that is the only allowed way to write into the preferences folder.

Apart from the API access only the following directories are allowed

~/Library/Application Support/<app-identifier>

~/Library/<app-identifier>

~/Library/Caches/<app-identifier>

if dealing wth images etc. you also are allowed to access

~/Pictures/<app-identifier>

~/Music/<app-identifier>

~/Movies/<app-identifier>

Best,

Stefan

Václav Slavík

unread,
Oct 16, 2011, 10:38:38 AM10/16/11
to wx-u...@googlegroups.com
Hi,

On 16 Oct 2011, at 16:07, Vadim Zeitlin wrote:
> We definitely should modify wxConfig to behave in app-store-compatible way
> by default. Stefan, what would be the best location for the user config
> files according to Apple rules?

~/Library/Preferences is the right place for config file (even if sandboxed, it's then inside app's container directory). It's the non-plist format, or not accessing it through NSUserDefaults that I suppose is the problem.

Vaclav

Vadim Zeitlin

unread,
Oct 16, 2011, 10:39:46 AM10/16/11
to wx-u...@googlegroups.com
On Sun, 16 Oct 2011 14:34:44 +0000 Stefan Csomor <cso...@advancedconcepts.ch> wrote:

SC> actually I should finally complete my plist compatible prefs store so that
SC> it can be used as a replacement, not only on iOS where but also on OSX.
SC> Because that is the only allowed way to write into the preferences folder.

Ah, I didn't know this but it makes sense.

SC> Apart from the API access only the following directories are allowed
SC>
SC> ~/Library/Application Support/<app-identifier>
SC>
SC> ~/Library/<app-identifier>
SC>
SC> ~/Library/Caches/<app-identifier>

Yes, I already saw that but it's not clear which one of those is the most
appropriate for wxConfig (and probably also wxStandardPaths itself). It
seems easy to rule out "Caches" but how do you choose between the first
two?

Also, what exactly is "app-identifier", especially in relation to our
existing app name and vendor name?

Regards,

Reply all
Reply to author
Forward
0 new messages