2011/1/4 eveningnick eveningnick <eveningn...@gmail.com>:
>> - If you really want System Preferences to quit, you could use NSAppleScript
>> and do something like:
>> tell application "System Preferences" to quit
>> You can do the same using AppleEvents.
>
> Peter, could you hint me on how to do it using AppleEvents?
>
> Googling, i have found some references to OmniAppKit:
> "There's a working example of using Apple Events to do this in the
> published Omni frameworks --- let's see, it's OAOpenSystemPreferences
> (), in OAPreferenceController.m, in OmniAppKit."
>
> I havent found this kit though, it is quite outdated.

https://github.com/omnigroup/OmniGroup/blob/master/Frameworks/OmniAppKit/Preferences.subproj/OAPreferenceController.m#L989

OmniAppKit is used in all of our desktop apps.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to