NSAlert with NSTimer

2008-12-09 Thread Rashmi Vyshnavi
Hi, I want to close a Modal NSAlertPanel after specific period of time if user does not click on any of the buttons. Is there a way to set up a NSTimer to close the Alert Panel after 10 secs. -- Thanks.. ___ Cocoa-dev mailing list

Re: NSAlert with NSTimer

2008-12-09 Thread Rashmi Vyshnavi
} if the user click on the alert window then – invalidate the myTimer This worked for me ~Rajesh On Dec 9, 2008, at 10:37 AM, Rashmi Vyshnavi wrote: Hi, I want to close a Modal NSAlertPanel after specific period of time if user does not click on any of the buttons. Is there a way

Re: NSAlert with NSTimer

2008-12-09 Thread Rashmi Vyshnavi
repeats:NO]; [[NSRunLoop currentRunLoop] addTimer:myTimer forMode:NSModalPanelRunLoopMode]; sherm-- On Dec 9, 2008, at 4:59 AM, Rashmi Vyshnavi wrote: I am using NSAlert. When runModal is called on the NSAlert's object, timer is not fired till the time i

Re: Spin Progress Indicator is not spinning

2008-11-04 Thread Rashmi Vyshnavi
Hi all, I could resolve this problem by using performSelectorOnMainThread as my application is multi threaded application. Thanks, Rashmi On Tue, Nov 4, 2008 at 8:09 AM, Rashmi Vyshnavi [EMAIL PROTECTED]wrote: Hi all, I am setting a custom view containing a label and spin style progress

Re: How to get AirPort Connection Status

2008-10-02 Thread Rashmi Vyshnavi
Development Engineer RealPlayer Mac/Unix RealNetworks, Inc. On Sep 17, 2008, at 9:50 PM, Rashmi Vyshnavi wrote: I want to know when my computer connects/disconnects to WiFi/AirPort network. Is there a way to get the status of connection to a WiFi network. I tried using System

Remove Duplicates in a NSArray

2008-10-01 Thread Rashmi Vyshnavi
Hi All, Is there a way to remove dictionary item containing same values for a key from a array of dictionaries? E.g. NSDictionary *dict1 = [NSDictionary dictionaryWithObjectsAndKeys:@ testVal,@testKey,,nil]; NSDictionary *dict2 = [NSDictionary dictionaryWithObjectsAndKeys:@

How to get AirPort Connection Status

2008-09-18 Thread Rashmi Vyshnavi
I want to know when my computer connects/disconnects to WiFi/AirPort network. Is there a way to get the status of connection to a WiFi network. I tried using System Configuration API,but I could not get the status. Here is the snippet -- static void