how to terminate first AlertPanel when second AlertPanel appears

Discussion in 'Mac Programming' started by kiran269, May 14, 2010.

  1. kiran269 macrumors newbie

    Joined:
    Jan 29, 2009
    #1
    Hi All,

    I am developing one application in that i want to add device request feature ,for that i am sending a message like "DeviceRequest" .
    if this message is send to other pc in that pc it shows one Alert message (NSRunAlertPanel(@"Request",@"Please Disconnect the device",@"ok",@"",nil);
    But again i am sending a devicerequest ,at that time first message will display like that only untill i click on Ok button.
    my question is i want to terminate the first message when second message appears.
    Is there any special window or any function is there.
    please can anyone reply for my question?



    Regards,
    kiran
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    I would try using NSAlert instead. You have more control over its window, although things may get tricky with the modal run loop.
     

Share This Page