I have multithreaded App which uses the certificate . the call to CSSM_SignData function invokes the ( SecurityAgent - keychains ) prompt for keychain password . the call to CSSM_SignData is blocking till the user responds to prompts (the current thread is blocked). i need to cancel the prompts on few scenarios :( . how to cancel the prompts through another thread ? .
crtn = CSSM_SignData(sigHand, text, 1, CSSM_ALGID_NONE, sig); currently i have an apple script doing this job for me , i am not an expert in apple script and certainly prefer cpp or obj tell application "System Events" set theWindows to windows of process "SecurityAgent" repeat with theWindow in theWindows (every UI element of group 1 of theWindow whose name contains "myapp") tell theWindow set theStattext to (every static text of theWindow) if (theStattext count) > 0 then if button 1 of sheet 1 of theWindow exists then click button 1 of sheet 1 of theWindow end if if button 2 of group 1 exists then click button 2 of group 1 return end if end if end tell end repeat end tell P.Rajendran or Raju (for further details contact me ) _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com