Posted By

iloveitaly on 07/12/09


javascript js window cocoa panel alert webview

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


WebView Alert Panel

 / Published in: Objective C


  1. - (void)webView:(WebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame
  2. {
  3. NSBeginInformationalAlertSheet(@"Alert", nil, nil, nil, [sender window], nil, NULL, NULL, NULL, message);
  4. }

Report this snippet  

You need to login to post a comment.