views:

57

answers:

1

Just wondering if it's possible to add a button like the "Clear History", "Clear Cookies" etc buttons in the Safari preferences to your own app's settings bundle? Been digging through the dev docs and can't find any plist specifier for a button, so I'm wondering if this is an internal API for the Apple guys?

After you hit the button, you get an action sheet asking you whether you really want to do it, and then presumably there is some callback based on the user's input.

Also noticed that the Nike + iPod settings have a clear button in them, but again, that app might have access to internal APIs that we don't.

alt text

+3  A: 

No, this is not possible. The system only supports interacting with the values from within your app. You can't run code from the settings app so a button would be useless.

Rengers