« Notes... | Home | My Case Study »

Important note for Webkit enabled applications in the Mac App Store


Do you use the htmlviewer in one of your applications you submit to the Mac App Store?
Your app can be rejected with this reason:

The application accesses the following location(s):

'~/Library/Icons/WebpageIcons.db*'

The application may be

* creating files
* writing files
* opening files for Read/Write access (instead of Read-Only access)

in the above location(s).

After you asked yourself why we are made responsible for what Apple's Webkit framework does, the question is: how to solve this?

Actually Apple has an article about this: How do I prevent my WebKit-enabled application from writing to the shared icon database?

And translating the code, it should be simply
dim u as NSUserDefaultsMBS = NSUserDefaultsMBS.standardUserDefaults
u.setBoolValue("WebIconDatabaseEnabled", false)
Put it somewhere in your startup code after plugin registration and before using a htmlviewer.
21 10 11 - 22:27
No comments

  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.