Re: Refresh com.apple.symbolichotkeys.plist
Re: Refresh com.apple.symbolichotkeys.plist
- Subject: Re: Refresh com.apple.symbolichotkeys.plist
- From: DeNigris Sean <email@hidden>
- Date: Tue, 16 Feb 2010 19:09:41 -0500
> 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.
Sean DeNigris
p.s. is there a better/additional list to ask about this?
_______________________________________________
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