Re: Refresh com.apple.symbolichotkeys.plist
Re: Refresh com.apple.symbolichotkeys.plist
- Subject: Re: Refresh com.apple.symbolichotkeys.plist
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 17 Feb 2010 09:43:02 +0100
Le 17 févr. 2010 à 01:09, DeNigris Sean a écrit :
>> Is there any way to cause the system to re-read com.apple.symbolichotkeys.plist.plist in Cocoa (or anywhere else)? I want to programmatically change a shortcut (which is no problem), but I want it to take effect immediately. System Preferences obviously signals the system to do this - does anyone know how it does that?
> I did some more poking around and zeroed in on the following in the system log snippet:
>
>> com.apple.launchd[1]: System: Looking up service com.apple.metadata.mds
>> com.apple.launchd[1] (com.apple.launchd.peruser.501[160]): Mach service lookup: com.apple.metadata.mds
>> com.apple.launchd[1]: Dispatching kevent...
>> com.apple.launchd[1]: KEVENT[0]: udata = 0x10002b210 data = 0x30 ident = 5 filter = EVFILT_READ flags = EV_ADD|EV_RECEIPT fflags = 0x0
>> distnoted[16]: received_message_from "System Preferences" [A0] post "SpotlightPrefCumulativePrefChangeNotification" "(null)"
>
> Based on my very limited understanding, it seems the Mach service is the key, but I don't know how to simulate what System Preferences is doing.
>
Most (if not all) IPC on OS X are mach messages, so it's not relevant.
If you need a better list, don't count on lists.apple.com. There is no discussion about private function here and that's what System Preferences uses.
-- Jean-Daniel
_______________________________________________
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