-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CFPreferences #1441
Comments
@cmsj, In response to some questions raised in #1078, I have started on writing a module utilizing the CFPreferences to more accurately mirror |
with the same caveats archived objects have in |
@asmagill Incredible. This is going to open up so many doors for us (as all of Final Cut Pro's Pasteboard data is organised using |
@asmagill go for it, I haven't made any moves on this :) |
I've been playing around with If we use TextEdit as an example:
It seems Maybe related? http://ddeville.me/2012/12/shared-preferences-between-sandboxed-applications |
Actually, this works: > cfpreferences.setValue("AppleLanguages", {"fr-FR"}, "/Users/chrishocking/Library/Containers/com.apple.TextEdit/Data/Library/Preferences/com.apple.TextEdit") |
@asmagill - Not urgent, so please don't feel like you have to reply if you're absolutely flat out, but I was just wondering why we're seeing different results in Hammerspoon versus CommandPost? Any tips or ideas? |
@asmagill - FYI: I'm seeing the following memory leak using This seems to be where the problem lies - but I can't see anything obvious as it looks like you're already releasing everything? https://github.com/asmagill/hammerspoon_asm/blob/master/cfpreferences/internal.m#L595 Any ideas? |
In researching #1437 it seems that a fair number of macOS system components work by setting preference values with CFPreferences API calls and NSDistributedNotification messages. We already support the latter, and adding the former doesn't look like it would be a huge amount of work.
The text was updated successfully, but these errors were encountered: