¿Cambiar programáticamente la configuración del sistema o vincularla?

I want the user to be able to change the Notification Center system settings directly from my app without having to go to System Preferences app. I don't know if this can be done at all so I'm willing to settle for having them click a button that directly links to the Notifications pane of System Settings. That way they can be toggling some preferences from my native preferences window, and just click a button to quickly change whatever in the SS notifications and be done with it.

preguntado el 24 de agosto de 12 a las 07:08

1 Respuestas

Preference panes are standalone executables. When you want to open a particular one, just launch it:

[[NSWorkspace sharedWorkspace] 
    openFile:@"/System/Library/PreferencePanes/Notifications.prefPane"];

Obviously you might want to check if the file is there, which might not be the case on older OS X versions.

Respondido 24 ago 12, 07:08

Brilliant, exactly what I was looking for. - Elbimio

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.