Re: iTune Plist changes from NSUserdefaults

2014-01-13 Thread Jens Alfke
On Jan 12, 2014, at 2:44 AM, Madhavi Gundeti wrote: > And I took Sampling process in Activity monitor. Below is the output. The part of the sample output that you pasted in isn’t useful for looking at a hang. The useful part is the thread stacks at the start of the output. —Jens

Re: iTune Plist changes from NSUserdefaults

2014-01-12 Thread Madhavi Gundeti
Hi Jens, Now I developed UI application to perform the iTunes preferences changes. I installed my application on Mountain Lion.when I upgraded OS version from Mountain Lion to Mavericks 10.9.1 my application freezes. And I took Sampling process in Activity monitor. Below is the output. -

Re: iTune Plist changes from NSUserdefaults

2013-12-24 Thread Jens Alfke
On Dec 23, 2013, at 10:58 PM, Madhavi Gundeti wrote: > I am developing a daemon which runs as root That’s not recommended, because the daemon will have the ability to do all kinds of bad things. A bug could destroy someone’s system, or worse, a security hole in your code could let an attacke

Re: iTune Plist changes from NSUserdefaults

2013-12-23 Thread Madhavi Gundeti
I am developing a daemon which runs as root, so I wanted to change the user defaults from the daemon. Now I got it, It is not possible with NSUserdefaults. So I found another way to do that. I created another application which is called by this daemon and the application will do the job what exac

Re: iTune Plist changes from NSUserdefaults

2013-12-23 Thread Jens Alfke
On Dec 23, 2013, at 9:32 PM, Madhavi Gundeti wrote: > But Is there any way to change other user defaults as root user?? I don’t know. Look at CFPreferences; it has more options than NSUserDefaults. Is there a reason you have to do this as root, rather than the user whose prefs are being alter

Re: iTune Plist changes from NSUserdefaults

2013-12-23 Thread Madhavi Gundeti
Hi Jens, Thank you so much for the reply. But Is there any way to change other user defaults as root user?? Thanks and Regards, Madhavi G. On Mon, Dec 23, 2013 at 4:39 AM, Jens Alfke wrote: > > On Dec 11, 2013, at 4:45 AM, Madhavi Gundeti > wrote: > > Please let me know what I am missing he

Re: iTune Plist changes from NSUserdefaults

2013-12-22 Thread Jens Alfke
On Dec 11, 2013, at 4:45 AM, Madhavi Gundeti wrote: > Please let me know what I am missing here. Why I am not able to change > these settings as root user. Because every user has their own defaults. If you use NSUserDefaults in a process whose userid is root, you’re changing the defaults of t