RE: Can we get command line arguments in applicationShouldHandleReopen?

2011-07-11 Thread Hirendra Rathor
OK, I will use apple events for this. Thanks Hirendra From: Jens Alfke [mailto:j...@mooseyard.com] Sent: Friday, July 08, 2011 9:28 PM To: Hirendra Rathor Cc: cocoa-dev@lists.apple.com Subject: Re: Can we get command line arguments in applicationShouldHandleReopen? On Jul 8, 2011, at 7:13 AM

Can we get command line arguments in applicationShouldHandleReopen?

2011-07-08 Thread Hirendra Rathor
I have written an .app which is launched many times until the running instance shuts down finally. The code to start it looks like this: NSTask* task = [[NSTask alloc] init]; [task setLaunchPath: @/usr/bin/open]; NSString* app = [NSString stringWithFormat:@%s, launchApp]; //

RE: Delay in reading cookie using NSHttpCookieStorage

2011-07-07 Thread Hirendra Rathor
Your problem looks to me like a common use case for the policy hurting functionality. File a bug at bugreport.apple.com and ask that it be changed. [Hirendra] Thanks for taking time to explain. As suggested, I filed a bug (ID: 9735505) at bugreport.apple.com (devforums.apple.com does not

RE: Delay in reading cookie using NSHttpCookieStorage

2011-07-07 Thread Hirendra Rathor
it a try sometime soon. - Hirendra -Original Message- From: Jens Alfke [mailto:j...@mooseyard.com] Sent: Wednesday, July 06, 2011 9:21 PM To: Hirendra Rathor Cc: cocoa-dev@lists.apple.com Subject: Re: Delay in reading cookie using NSHttpCookieStorage I don't think the cookie storage

Delay in reading cookie using NSHttpCookieStorage

2011-07-05 Thread Hirendra Rathor
I have written a Cocoa application that uses NSHttpCookieStorage class to read cookie set in the Safari browser. I see that if the time gap between setting the cookie by Safari and the application querying for the cookie is couple of seconds, then the cookie returned by NSHttpCookieStorage is