Programmatically change screen saver settings

2015-02-28 Thread Juanjo Conti
Hi, I'm trying to programmatically change the configured screen saver. If I do $ defaults -currentHost read com.apple.screensaver { CleanExit = YES; PrefsVersion = 100; idleTime = 600; moduleDict = { moduleName = ; path = /Users/juanjo/Library/Screen

NSTextView Copy-and-Paste Problem

2015-02-28 Thread Charles Jenkins
I’m having problems with text attributes getting mangled by copy-and-paste operations within the selfsame text view. Obviously text pasted in from outside the app would have an unpredictable set of attributes, but you’d think copying and pasting in the same text view would leave you with a

Re: Error migrating: Unacceptable type of value for attribute

2015-02-28 Thread Rick Mann
In the end, I threw away the mapping model file and created another one from scratch. That one worked. Xcode is so incredibly buggy. On Feb 28, 2015, at 11:25 , Jerry Krinock je...@ieee.org wrote: On 2015 Feb 27, at 20:10, Rick Mann rm...@latencyzero.com wrote: *** Terminating app due

Re: Error migrating: Unacceptable type of value for attribute

2015-02-28 Thread Kyle Sluder
On Feb 28, 2015, at 11:25 AM, Jerry Krinock je...@ieee.org wrote: On 2015 Feb 27, at 20:10, Rick Mann rm...@latencyzero.com wrote: *** Terminating app due to uncaught exception ‘NSInvalidArgumentException' … Any ideas? Maybe add a symbolic breakpoint at ‘NSInvalidArgumentException’,

Re: Error migrating: Unacceptable type of value for attribute

2015-02-28 Thread Jerry Krinock
On 2015 Feb 27, at 20:10, Rick Mann rm...@latencyzero.com wrote: *** Terminating app due to uncaught exception ‘NSInvalidArgumentException' … Any ideas? Maybe add a symbolic breakpoint at ‘NSInvalidArgumentException’, and when it breaks, poke around. Or do a heavyweight migration; at

Re: scale text proportionally as bounds increase

2015-02-28 Thread sqwarqDev
On 24 Feb 2015, at 05:08, Jens Alfke j...@mooseyard.com wrote: On Feb 23, 2015, at 8:49 AM, sqwarqDev 2551p...@gmail.com wrote: How do I programmatically tell each NSControl to increase its text size proportionally as its bounds increase? You’ll have to do it manually. Observe the

Re: Programmatically change screen saver settings

2015-02-28 Thread Graham Cox
On 1 Mar 2015, at 12:46 am, Juanjo Conti jjco...@carouselapps.com wrote: This settings are not accesibles via NSUserDefaults but they are via CF. I was able to do this by code var moduleDict = CFPreferencesCopyAppValue(moduleDict, com.apple.screensaver) as CFDictionary but when I

Re: Programmatically change screen saver settings

2015-02-28 Thread dangerwillrobinsondanger
You should read the docs and expect that some domains may require admin rights or even possibly not be accessible by design. From CFPreferences docs Note that modification of some preferences domains (those not belonging to the “Current User”) requires root privileges (or Admin privileges

Re: Programmatically change screen saver settings

2015-02-28 Thread Juanjo Conti
Sorry, my code is Swift. There is no @strings. On Sat, Feb 28, 2015 at 10:14 PM, Graham Cox graham@bigpond.com wrote: On 1 Mar 2015, at 12:46 am, Juanjo Conti jjco...@carouselapps.com wrote: This settings are not accesibles via NSUserDefaults but they are via CF. I was able to do