Re: Close System Preferences programmatically
Re: Close System Preferences programmatically
- Subject: Re: Close System Preferences programmatically
- From: Kyle Sluder <email@hidden>
- Date: Tue, 4 Jan 2011 14:50:00 -0800
2011/1/4 eveningnick eveningnick <email@hidden>:
>> - 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 (email@hidden)
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:
This email sent to email@hidden