Re: iTune Plist changes from NSUserdefaults

2014-01-13 Thread Jens Alfke
On Jan 12, 2014, at 2:44 AM, Madhavi Gundeti madhavi.gundet...@gmail.com 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

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 madhavi.gundet...@gmail.com 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

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 j...@mooseyard.com wrote: On Dec 11, 2013, at 4:45 AM, Madhavi Gundeti madhavi.gundet...@gmail.com wrote:

Re: iTune Plist changes from NSUserdefaults

2013-12-23 Thread Jens Alfke
On Dec 23, 2013, at 9:32 PM, Madhavi Gundeti madhavi.gundet...@gmail.com 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

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

iTune Plist changes from NSUserdefaults

2013-12-22 Thread Madhavi Gundeti
Hi, I am developing one MAC application to change iTunes Parental control setting programmatically. I am using NSUserdefaults class to achieve above. Please find the sample code. #define kBundleIdentifier @com.apple.iTunes NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

Re: iTune Plist changes from NSUserdefaults

2013-12-22 Thread Jens Alfke
On Dec 11, 2013, at 4:45 AM, Madhavi Gundeti madhavi.gundet...@gmail.com 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