Return to Snippet

Revision: 15620
at July 12, 2009 01:22 by iloveitaly


Initial Code
- (BOOL)webView:(WebView *)sender runJavaScriptConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame {
  NSInteger result = NSRunInformationalAlertPanel(NSLocalizedString(@"JavaScript", @""),  // title
                          message,                // message
                          NSLocalizedString(@"OK", @""),      // default button
                          NSLocalizedString(@"Cancel", @""),    // alt button
                          nil);
  return NSAlertDefaultReturn == result;  
}

Initial URL
http://github.com/marshall/titanium/blob/292086a450efae607c9c5e54db03b2bcb94252b4/runtime/webkit_shell/osx_new/src/TIBrowserWindowController.m

Initial Description

                                

Initial Title
Custom Cocoa WebView JavaScript Confirm Window

Initial Tags
javascript, js, window

Initial Language
Objective C