Ronald Oussoren avatar Ronald Oussoren committed 4153757

Add more WebKit stuff, including support for the actual WebKit.framework. The
latter should not give builderrors on systems without WebKit (not that this
is very helpfull given the build-errors for Foundation on such systems)

Comments (0)

Files changed (12)

pyobjc/Lib/Foundation/protocols.py

     ]
 )
 
+NSURLAuthenticationChallengeSender = _objc.informal_protocol(
+    "NSURLAuthenticationChallengeSender",
+    [
+# (void)cancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
+        _objc.selector(
+            None,
+            selector='cancelAuthenticationChallenge:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+# (void)continueWithoutCredentialForAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
+        _objc.selector(
+            None,
+            selector='continueWithoutCredentialForAuthenticationChallenge:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+# (void)useCredential:(NSURLCredential *)credential forAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
+        _objc.selector(
+            None,
+            selector='useCredential:forAuthenticationChallenge:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+    ]
+)
+
 NSURLClient = _objc.informal_protocol(
     "NSURLClient",
     [
     ]
 )
 
+NSURLConnectionDelegate = _objc.informal_protocol(
+    "NSURLConnectionDelegate",
+    [
+# (void)connection:(NSURLConnection *)connection didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
+        _objc.selector(
+            None,
+            selector='connection:didCancelAuthenticationChallenge:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
+        _objc.selector(
+            None,
+            selector='connection:didFailWithError:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
+        _objc.selector(
+            None,
+            selector='connection:didReceiveAuthenticationChallenge:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
+        _objc.selector(
+            None,
+            selector='connection:didReceiveData:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
+        _objc.selector(
+            None,
+            selector='connection:didReceiveResponse:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse
+        _objc.selector(
+            None,
+            selector='connection:willCacheResponse:',
+            signature='@@:@@',
+            isRequired=0,
+        ),
+# (NSURLRequest *)connection:(NSURLConnection *)connection willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response
+        _objc.selector(
+            None,
+            selector='connection:willSendRequest:redirectResponse:',
+            signature='@@:@@@',
+            isRequired=0,
+        ),
+# (void)connectionDidFinishLoading:(NSURLConnection *)connection
+        _objc.selector(
+            None,
+            selector='connectionDidFinishLoading:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+    ]
+)
+
+NSURLDownloadDelegate = _objc.informal_protocol(
+    "NSURLDownloadDelegate",
+    [
+# (void)download:(NSURLDownload *)download decideDestinationWithSuggestedFilename:(NSString *)filename
+        _objc.selector(
+            None,
+            selector='download:decideDestinationWithSuggestedFilename:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)download:(NSURLDownload *)download didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
+        _objc.selector(
+            None,
+            selector='download:didCancelAuthenticationChallenge:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)download:(NSURLDownload *)download didCreateDestination:(NSString *)path
+        _objc.selector(
+            None,
+            selector='download:didCreateDestination:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error
+        _objc.selector(
+            None,
+            selector='download:didFailWithError:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)download:(NSURLDownload *)download didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
+        _objc.selector(
+            None,
+            selector='download:didReceiveAuthenticationChallenge:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)download:(NSURLDownload *)download didReceiveDataOfLength:(unsigned)length
+        _objc.selector(
+            None,
+            selector='download:didReceiveDataOfLength:',
+            signature='v@:@I',
+            isRequired=0,
+        ),
+# (void)download:(NSURLDownload *)download didReceiveResponse:(NSURLResponse *)response
+        _objc.selector(
+            None,
+            selector='download:didReceiveResponse:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (BOOL)download:(NSURLDownload *)download shouldDecodeSourceDataOfMIMEType:(NSString *)encodingType
+        _objc.selector(
+            None,
+            selector='download:shouldDecodeSourceDataOfMIMEType:',
+            signature='c@:@@',
+            isRequired=0,
+        ),
+# (NSURLRequest *)download:(NSURLDownload *)download willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse
+        _objc.selector(
+            None,
+            selector='download:willSendRequest:redirectResponse:',
+            signature='@@:@@@',
+            isRequired=0,
+        ),
+# (void)downloadDidBegin:(NSURLDownload *)download
+        _objc.selector(
+            None,
+            selector='downloadDidBegin:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+# (void)downloadDidFinish:(NSURLDownload *)download
+        _objc.selector(
+            None,
+            selector='downloadDidFinish:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+    ]
+)
+
 NSURLHandleClient = _objc.informal_protocol(
     "NSURLHandleClient",
     [
     ]
 )
 
+NSURLProtocolClient = _objc.informal_protocol(
+    "NSURLProtocolClient",
+    [
+# (void)URLProtocol:(NSURLProtocol *)protocol cachedResponseIsValid:(NSCachedURLResponse *)cachedResponse
+        _objc.selector(
+            None,
+            selector='URLProtocol:cachedResponseIsValid:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)URLProtocol:(NSURLProtocol *)protocol didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
+        _objc.selector(
+            None,
+            selector='URLProtocol:didCancelAuthenticationChallenge:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)URLProtocol:(NSURLProtocol *)protocol didFailWithError:(NSError *)error
+        _objc.selector(
+            None,
+            selector='URLProtocol:didFailWithError:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)URLProtocol:(NSURLProtocol *)protocol didLoadData:(NSData *)data
+        _objc.selector(
+            None,
+            selector='URLProtocol:didLoadData:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)URLProtocol:(NSURLProtocol *)protocol didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
+        _objc.selector(
+            None,
+            selector='URLProtocol:didReceiveAuthenticationChallenge:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)URLProtocol:(NSURLProtocol *)protocol didReceiveResponse:(NSURLResponse *)response cacheStoragePolicy:(NSURLCacheStoragePolicy)policy
+        _objc.selector(
+            None,
+            selector='URLProtocol:didReceiveResponse:cacheStoragePolicy:',
+            signature='v@:@@i',
+            isRequired=0,
+        ),
+# (void)URLProtocol:(NSURLProtocol *)protocol wasRedirectedToRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse
+        _objc.selector(
+            None,
+            selector='URLProtocol:wasRedirectedToRequest:redirectResponse:',
+            signature='v@:@@@',
+            isRequired=0,
+        ),
+# (void)URLProtocolDidFinishLoading:(NSURLProtocol *)protocol
+        _objc.selector(
+            None,
+            selector='URLProtocolDidFinishLoading:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+    ]
+)
+

pyobjc/Lib/WebKit/__init__.py

+"""
+Python mapping for the Cocoa AppKit.
+
+This module does not contain docstrings for the wrapped code, check Apple's
+documentation for details on how to use these functions and classes.
+"""
+
+import AppKit
+#import _WebKitSignatures
+import objc as _objc
+
+# We first register special methods signatures with the runtime. The module
+# is not used for anything else.
+
+from _WebKit import *
+
+
+# We try to import a module containing support code, the code
+# is only ever used from the C side.
+#import _WebKitMapping 
+
+# Load the Cocoa bundle, and gather all classes defined there
+_objc.loadBundle("WebKit", globals(), bundle_path="/System/Library/Frameworks/WebKit.framework")
+_objc.recycle_autorelease_pool()
+
+import protocols  # no need to export these, just register with PyObjC

pyobjc/Lib/WebKit/protocols.py

+# generated from '/System/Library/Frameworks/WebKit.framework'
+import objc as _objc
+
+
+WebDocumentRepresentation = _objc.informal_protocol(
+    "WebDocumentRepresentation",
+    [
+# (BOOL)canProvideDocumentSource
+        _objc.selector(
+            None,
+            selector='canProvideDocumentSource',
+            signature='c@:',
+            isRequired=0,
+        ),
+# (NSString *)documentSource
+        _objc.selector(
+            None,
+            selector='documentSource',
+            signature='@@:',
+            isRequired=0,
+        ),
+# (void)finishedLoadingWithDataSource:(WebDataSource *)dataSource
+        _objc.selector(
+            None,
+            selector='finishedLoadingWithDataSource:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+# (void)receivedData:(NSData *)data withDataSource:(WebDataSource *)dataSource
+        _objc.selector(
+            None,
+            selector='receivedData:withDataSource:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)receivedError:(NSError *)error withDataSource:(WebDataSource *)dataSource
+        _objc.selector(
+            None,
+            selector='receivedError:withDataSource:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)setDataSource:(WebDataSource *)dataSource
+        _objc.selector(
+            None,
+            selector='setDataSource:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+# (NSString *)title
+        _objc.selector(
+            None,
+            selector='title',
+            signature='@@:',
+            isRequired=0,
+        ),
+    ]
+)
+
+WebDocumentSearching = _objc.informal_protocol(
+    "WebDocumentSearching",
+    [
+# (BOOL)searchFor:(NSString *)string direction:(BOOL)forward caseSensitive:(BOOL)caseFlag wrap:(BOOL)wrapFlag
+        _objc.selector(
+            None,
+            selector='searchFor:direction:caseSensitive:wrap:',
+            signature='c@:@ccc',
+            isRequired=0,
+        ),
+    ]
+)
+
+WebDocumentText = _objc.informal_protocol(
+    "WebDocumentText",
+    [
+# (NSAttributedString *)attributedString
+        _objc.selector(
+            None,
+            selector='attributedString',
+            signature='@@:',
+            isRequired=0,
+        ),
+# (void)deselectAll
+        _objc.selector(
+            None,
+            selector='deselectAll',
+            signature='v@:',
+            isRequired=0,
+        ),
+# (void)selectAll
+        _objc.selector(
+            None,
+            selector='selectAll',
+            signature='v@:',
+            isRequired=0,
+        ),
+# (NSAttributedString *)selectedAttributedString
+        _objc.selector(
+            None,
+            selector='selectedAttributedString',
+            signature='@@:',
+            isRequired=0,
+        ),
+# (NSString *)selectedString
+        _objc.selector(
+            None,
+            selector='selectedString',
+            signature='@@:',
+            isRequired=0,
+        ),
+# (NSString *)string
+        _objc.selector(
+            None,
+            selector='string',
+            signature='@@:',
+            isRequired=0,
+        ),
+# (BOOL)supportsTextEncoding
+        _objc.selector(
+            None,
+            selector='supportsTextEncoding',
+            signature='c@:',
+            isRequired=0,
+        ),
+    ]
+)
+
+WebDocumentView = _objc.informal_protocol(
+    "WebDocumentView",
+    [
+# (BOOL)allowsScrolling
+        _objc.selector(
+            None,
+            selector='allowsScrolling',
+            signature='c@:',
+            isRequired=0,
+        ),
+# (NSView <WebDocumentView> *)documentView
+        _objc.selector(
+            None,
+            selector='documentView',
+            signature='@@:',
+            isRequired=0,
+        ),
+# (void)setAllowsScrolling:(BOOL)flag
+        _objc.selector(
+            None,
+            selector='setAllowsScrolling:',
+            signature='v@:c',
+            isRequired=0,
+        ),
+# (WebFrame *)webFrame
+        _objc.selector(
+            None,
+            selector='webFrame',
+            signature='@@:',
+            isRequired=0,
+        ),
+    ]
+)
+
+WebDownloadDelegate = _objc.informal_protocol(
+    "WebDownloadDelegate",
+    [
+# (NSWindow *)downloadWindowForAuthenticationSheet:(WebDownload *)download
+        _objc.selector(
+            None,
+            selector='downloadWindowForAuthenticationSheet:',
+            signature='@@:@',
+            isRequired=0,
+        ),
+    ]
+)
+
+WebFrameLoadDelegate = _objc.informal_protocol(
+    "WebFrameLoadDelegate",
+    [
+# (void)webView:(WebView *)sender didCancelClientRedirectForFrame:(WebFrame *)frame
+        _objc.selector(
+            None,
+            selector='webView:didCancelClientRedirectForFrame:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender didChangeLocationWithinPageForFrame:(WebFrame *)frame
+        _objc.selector(
+            None,
+            selector='webView:didChangeLocationWithinPageForFrame:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender didCommitLoadForFrame:(WebFrame *)frame
+        _objc.selector(
+            None,
+            selector='webView:didCommitLoadForFrame:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender didFailLoadWithError:(NSError *)error forFrame:(WebFrame *)frame
+        _objc.selector(
+            None,
+            selector='webView:didFailLoadWithError:forFrame:',
+            signature='v@:@@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender didFailProvisionalLoadWithError:(NSError *)error forFrame:(WebFrame *)frame
+        _objc.selector(
+            None,
+            selector='webView:didFailProvisionalLoadWithError:forFrame:',
+            signature='v@:@@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame
+        _objc.selector(
+            None,
+            selector='webView:didFinishLoadForFrame:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender didReceiveIcon:(NSImage *)image forFrame:(WebFrame *)frame
+        _objc.selector(
+            None,
+            selector='webView:didReceiveIcon:forFrame:',
+            signature='v@:@@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender didReceiveServerRedirectForProvisionalLoadForFrame:(WebFrame *)frame
+        _objc.selector(
+            None,
+            selector='webView:didReceiveServerRedirectForProvisionalLoadForFrame:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender didReceiveTitle:(NSString *)title forFrame:(WebFrame *)frame
+        _objc.selector(
+            None,
+            selector='webView:didReceiveTitle:forFrame:',
+            signature='v@:@@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender didStartProvisionalLoadForFrame:(WebFrame *)frame
+        _objc.selector(
+            None,
+            selector='webView:didStartProvisionalLoadForFrame:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender willCloseFrame:(WebFrame *)frame
+        _objc.selector(
+            None,
+            selector='webView:willCloseFrame:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender willPerformClientRedirectToURL:(NSURL *)URL delay:(NSTimeInterval)seconds fireDate:(NSDate *)date forFrame:(WebFrame *)frame
+        _objc.selector(
+            None,
+            selector='webView:willPerformClientRedirectToURL:delay:fireDate:forFrame:',
+            signature='v@:@@d@@',
+            isRequired=0,
+        ),
+    ]
+)
+
+WebOpenPanelResultListener = _objc.informal_protocol(
+    "WebOpenPanelResultListener",
+    [
+# (void)cancel
+        _objc.selector(
+            None,
+            selector='cancel',
+            signature='v@:',
+            isRequired=0,
+        ),
+# (void)chooseFilename:(NSString *)fileName
+        _objc.selector(
+            None,
+            selector='chooseFilename:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+    ]
+)
+
+WebPolicyDecisionListener = _objc.informal_protocol(
+    "WebPolicyDecisionListener",
+    [
+# (void)download
+        _objc.selector(
+            None,
+            selector='download',
+            signature='v@:',
+            isRequired=0,
+        ),
+# (void)ignore
+        _objc.selector(
+            None,
+            selector='ignore',
+            signature='v@:',
+            isRequired=0,
+        ),
+# (void)use
+        _objc.selector(
+            None,
+            selector='use',
+            signature='v@:',
+            isRequired=0,
+        ),
+    ]
+)
+
+WebPolicyDelegate = _objc.informal_protocol(
+    "WebPolicyDelegate",
+    [
+# (void)webView:(WebView *)webView decidePolicyForMIMEType:(NSString *)type request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id<WebPolicyDecisionListener>)listener
+        _objc.selector(
+            None,
+            selector='webView:decidePolicyForMIMEType:request:frame:decisionListener:',
+            signature='v@:@@@@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)webView decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id<WebPolicyDecisionListener>)listener
+        _objc.selector(
+            None,
+            selector='webView:decidePolicyForNavigationAction:request:frame:decisionListener:',
+            signature='v@:@@@@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)webView decidePolicyForNewWindowAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request newFrameName:(NSString *)frameName decisionListener:(id<WebPolicyDecisionListener>)listener
+        _objc.selector(
+            None,
+            selector='webView:decidePolicyForNewWindowAction:request:newFrameName:decisionListener:',
+            signature='v@:@@@@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)webView unableToImplementPolicyWithError:(NSError *)error frame:(WebFrame *)frame
+        _objc.selector(
+            None,
+            selector='webView:unableToImplementPolicyWithError:frame:',
+            signature='v@:@@@',
+            isRequired=0,
+        ),
+    ]
+)
+
+WebResourceLoadDelegate = _objc.informal_protocol(
+    "WebResourceLoadDelegate",
+    [
+# (id)webView:(WebView *)sender identifierForInitialRequest:(NSURLRequest *)request fromDataSource:(WebDataSource *)dataSource
+        _objc.selector(
+            None,
+            selector='webView:identifierForInitialRequest:fromDataSource:',
+            signature='@@:@@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender plugInFailedWithError:(NSError *)error dataSource:(WebDataSource *)dataSource
+        _objc.selector(
+            None,
+            selector='webView:plugInFailedWithError:dataSource:',
+            signature='v@:@@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender resource:(id)identifier didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge fromDataSource:(WebDataSource *)dataSource
+        _objc.selector(
+            None,
+            selector='webView:resource:didCancelAuthenticationChallenge:fromDataSource:',
+            signature='v@:@@@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender resource:(id)identifier didFailLoadingWithError:(NSError *)error fromDataSource:(WebDataSource *)dataSource
+        _objc.selector(
+            None,
+            selector='webView:resource:didFailLoadingWithError:fromDataSource:',
+            signature='v@:@@@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender resource:(id)identifier didFinishLoadingFromDataSource:(WebDataSource *)dataSource
+        _objc.selector(
+            None,
+            selector='webView:resource:didFinishLoadingFromDataSource:',
+            signature='v@:@@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender resource:(id)identifier didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge fromDataSource:(WebDataSource *)dataSource
+        _objc.selector(
+            None,
+            selector='webView:resource:didReceiveAuthenticationChallenge:fromDataSource:',
+            signature='v@:@@@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender resource:(id)identifier didReceiveContentLength: (unsigned)length fromDataSource:(WebDataSource *)dataSource
+        _objc.selector(
+            None,
+            selector='webView:resource:didReceiveContentLength:fromDataSource:',
+            signature='v@:@@I@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender resource:(id)identifier didReceiveResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)dataSource
+        _objc.selector(
+            None,
+            selector='webView:resource:didReceiveResponse:fromDataSource:',
+            signature='v@:@@@@',
+            isRequired=0,
+        ),
+# (NSURLRequest *)webView:(WebView *)sender resource:(id)identifier willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse fromDataSource:(WebDataSource *)dataSource
+        _objc.selector(
+            None,
+            selector='webView:resource:willSendRequest:redirectResponse:fromDataSource:',
+            signature='@@:@@@@@',
+            isRequired=0,
+        ),
+    ]
+)
+
+WebUIDelegate = _objc.informal_protocol(
+    "WebUIDelegate",
+    [
+# (NSArray *)webView:(WebView *)sender contextMenuItemsForElement:(NSDictionary *)element defaultMenuItems:(NSArray *)defaultMenuItems
+        _objc.selector(
+            None,
+            selector='webView:contextMenuItemsForElement:defaultMenuItems:',
+            signature='@@:@@@',
+            isRequired=0,
+        ),
+# (WebView *)webView:(WebView *)sender createWebViewWithRequest:(NSURLRequest *)request
+        _objc.selector(
+            None,
+            selector='webView:createWebViewWithRequest:',
+            signature='@@:@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender makeFirstResponder:(NSResponder *)responder
+        _objc.selector(
+            None,
+            selector='webView:makeFirstResponder:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender mouseDidMoveOverElement:(NSDictionary *)elementInformation modifierFlags:(unsigned int)modifierFlags
+        _objc.selector(
+            None,
+            selector='webView:mouseDidMoveOverElement:modifierFlags:',
+            signature='v@:@@I',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message
+        _objc.selector(
+            None,
+            selector='webView:runJavaScriptAlertPanelWithMessage:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (BOOL)webView:(WebView *)sender runJavaScriptConfirmPanelWithMessage:(NSString *)message
+        _objc.selector(
+            None,
+            selector='webView:runJavaScriptConfirmPanelWithMessage:',
+            signature='c@:@@',
+            isRequired=0,
+        ),
+# (NSString *)webView:(WebView *)sender runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:(NSString *)defaultText
+        _objc.selector(
+            None,
+            selector='webView:runJavaScriptTextInputPanelWithPrompt:defaultText:',
+            signature='@@:@@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender runOpenPanelForFileButtonWithResultListener:(id<WebOpenPanelResultListener>)resultListener
+        _objc.selector(
+            None,
+            selector='webView:runOpenPanelForFileButtonWithResultListener:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender setContentRect:(NSRect)contentRect
+        _objc.selector(
+            None,
+            selector='webView:setContentRect:',
+            signature='v@:@{_NSRect={_NSPoint=ff}{_NSSize=ff}}',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender setFrame:(NSRect)frame
+        _objc.selector(
+            None,
+            selector='webView:setFrame:',
+            signature='v@:@{_NSRect={_NSPoint=ff}{_NSSize=ff}}',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender setResizable:(BOOL)resizable
+        _objc.selector(
+            None,
+            selector='webView:setResizable:',
+            signature='v@:@c',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender setStatusBarVisible:(BOOL)visible
+        _objc.selector(
+            None,
+            selector='webView:setStatusBarVisible:',
+            signature='v@:@c',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender setStatusText:(NSString *)text
+        _objc.selector(
+            None,
+            selector='webView:setStatusText:',
+            signature='v@:@@',
+            isRequired=0,
+        ),
+# (void)webView:(WebView *)sender setToolbarsVisible:(BOOL)visible
+        _objc.selector(
+            None,
+            selector='webView:setToolbarsVisible:',
+            signature='v@:@c',
+            isRequired=0,
+        ),
+# (BOOL)webViewAreToolbarsVisible:(WebView *)sender
+        _objc.selector(
+            None,
+            selector='webViewAreToolbarsVisible:',
+            signature='c@:@',
+            isRequired=0,
+        ),
+# (void)webViewClose:(WebView *)sender
+        _objc.selector(
+            None,
+            selector='webViewClose:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+# (NSRect)webViewContentRect:(WebView *)sender
+        _objc.selector(
+            None,
+            selector='webViewContentRect:',
+            signature='{_NSRect={_NSPoint=ff}{_NSSize=ff}}@:@',
+            isRequired=0,
+        ),
+# (NSResponder *)webViewFirstResponder:(WebView *)sender
+        _objc.selector(
+            None,
+            selector='webViewFirstResponder:',
+            signature='@@:@',
+            isRequired=0,
+        ),
+# (void)webViewFocus:(WebView *)sender
+        _objc.selector(
+            None,
+            selector='webViewFocus:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+# (NSRect)webViewFrame:(WebView *)sender
+        _objc.selector(
+            None,
+            selector='webViewFrame:',
+            signature='{_NSRect={_NSPoint=ff}{_NSSize=ff}}@:@',
+            isRequired=0,
+        ),
+# (BOOL)webViewIsResizable:(WebView *)sender
+        _objc.selector(
+            None,
+            selector='webViewIsResizable:',
+            signature='c@:@',
+            isRequired=0,
+        ),
+# (BOOL)webViewIsStatusBarVisible:(WebView *)sender
+        _objc.selector(
+            None,
+            selector='webViewIsStatusBarVisible:',
+            signature='c@:@',
+            isRequired=0,
+        ),
+# (void)webViewShow:(WebView *)sender
+        _objc.selector(
+            None,
+            selector='webViewShow:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+# (NSString *)webViewStatusText:(WebView *)sender
+        _objc.selector(
+            None,
+            selector='webViewStatusText:',
+            signature='@@:@',
+            isRequired=0,
+        ),
+# (void)webViewUnfocus:(WebView *)sender
+        _objc.selector(
+            None,
+            selector='webViewUnfocus:',
+            signature='v@:@',
+            isRequired=0,
+        ),
+    ]
+)
+

pyobjc/Modules/AppKit/_App_Functions.inc

 		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
 	return result;
 }
-/* NSArray *NSAccessibilityUnignoredChildren(NSArray *originalChildren); */
-static PyObject* objc_NSAccessibilityUnignoredChildren(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "originalChildren", NULL };
-	PyObject* result;
-	NSArray* objc_result;
-	id objc_originalChildren;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSAccessibilityUnignoredChildren", keywords, convert_id, &objc_originalChildren)) return NULL;
-	NS_DURING
-		objc_result = NSAccessibilityUnignoredChildren(
-objc_originalChildren);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* NSArray *NSAccessibilityUnignoredChildrenForOnlyChild(id originalChild); */
-static PyObject* objc_NSAccessibilityUnignoredChildrenForOnlyChild(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "originalChild", NULL };
-	PyObject* result;
-	NSArray* objc_result;
-	id objc_originalChild;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSAccessibilityUnignoredChildrenForOnlyChild", keywords, convert_id, &objc_originalChild)) return NULL;
-	NS_DURING
-		objc_result = NSAccessibilityUnignoredChildrenForOnlyChild(
-objc_originalChild);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* void NSAccessibilityPostNotification(id element, NSString *notification); */
-static PyObject* objc_NSAccessibilityPostNotification(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "element", "notification", NULL };
-	PyObject* result;
-	id objc_element;
-	id objc_notification;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&:NSAccessibilityPostNotification", keywords, convert_id, &objc_element, convert_id, &objc_notification)) return NULL;
-	NS_DURING
-		NSAccessibilityPostNotification(
-objc_element, objc_notification);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-	result = Py_None;
-	Py_INCREF(Py_None);
-	return result;
-}
 /* BOOL NSApplicationLoad(void); */
 static PyObject* objc_NSApplicationLoad(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
 {
 	if (result == NULL) return NULL;
 	return result;
 }
-/* BOOL NSShowsServicesMenuItem(NSString * itemName); */
-static PyObject* objc_NSShowsServicesMenuItem(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "itemName", NULL };
-	PyObject* result;
-	BOOL objc_result;
-	id objc_itemName;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSShowsServicesMenuItem", keywords, convert_id, &objc_itemName)) return NULL;
-	NS_DURING
-		objc_result = NSShowsServicesMenuItem(
-objc_itemName);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjCBool_FromLong(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
-/* int NSSetShowsServicesMenuItem(NSString * itemName, BOOL enabled); */
-static PyObject* objc_NSSetShowsServicesMenuItem(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "itemName", "enabled", NULL };
-	PyObject* result;
-	int objc_result;
-	id objc_itemName;
-	BOOL objc_enabled;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&:NSSetShowsServicesMenuItem", keywords, convert_id, &objc_itemName, convert_BOOL, &objc_enabled)) return NULL;
-	NS_DURING
-		objc_result = NSSetShowsServicesMenuItem(
-objc_itemName, objc_enabled);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyInt_FromLong(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
 /* void NSUpdateDynamicServices(void); */
 static PyObject* objc_NSUpdateDynamicServices(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
 {
 	Py_INCREF(Py_None);
 	return result;
 }
-/* BOOL NSPerformService(NSString *itemName, NSPasteboard *pboard); */
-static PyObject* objc_NSPerformService(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "itemName", "pboard", NULL };
-	PyObject* result;
-	BOOL objc_result;
-	id objc_itemName;
-	id objc_pboard;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&:NSPerformService", keywords, convert_id, &objc_itemName, convert_id, &objc_pboard)) return NULL;
-	NS_DURING
-		objc_result = NSPerformService(
-objc_itemName, objc_pboard);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjCBool_FromLong(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
-/* void NSRegisterServicesProvider(id provider, NSString *name); */
-static PyObject* objc_NSRegisterServicesProvider(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "provider", "name", NULL };
-	PyObject* result;
-	id objc_provider;
-	id objc_name;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&:NSRegisterServicesProvider", keywords, convert_id, &objc_provider, convert_id, &objc_name)) return NULL;
-	NS_DURING
-		NSRegisterServicesProvider(
-objc_provider, objc_name);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-	result = Py_None;
-	Py_INCREF(Py_None);
-	return result;
-}
-/* void NSUnregisterServicesProvider(NSString *name); */
-static PyObject* objc_NSUnregisterServicesProvider(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "name", NULL };
-	PyObject* result;
-	id objc_name;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSUnregisterServicesProvider", keywords, convert_id, &objc_name)) return NULL;
-	NS_DURING
-		NSUnregisterServicesProvider(
-objc_name);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-	result = Py_None;
-	Py_INCREF(Py_None);
-	return result;
-}
 /* BOOL NSPlanarFromDepth (NSWindowDepth depth); */
 static PyObject* objc_NSPlanarFromDepth(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
 {
 	if (result == NULL) return NULL;
 	return result;
 }
-/* NSString *NSColorSpaceFromDepth (NSWindowDepth depth); */
-static PyObject* objc_NSColorSpaceFromDepth(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "depth", NULL };
-	PyObject* result;
-	NSString* objc_result;
-	NSWindowDepth objc_depth;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "i:NSColorSpaceFromDepth", keywords, &objc_depth)) return NULL;
-	NS_DURING
-		objc_result = NSColorSpaceFromDepth(
-objc_depth);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
 /* int NSBitsPerSampleFromDepth (NSWindowDepth depth); */
 static PyObject* objc_NSBitsPerSampleFromDepth(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
 {
 	if (result == NULL) return NULL;
 	return result;
 }
-/* int NSNumberOfColorComponents (NSString *colorSpaceName); */
-static PyObject* objc_NSNumberOfColorComponents(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "colorSpaceName", NULL };
-	PyObject* result;
-	int objc_result;
-	id objc_colorSpaceName;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSNumberOfColorComponents", keywords, convert_id, &objc_colorSpaceName)) return NULL;
-	NS_DURING
-		objc_result = NSNumberOfColorComponents(
-objc_colorSpaceName);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyInt_FromLong(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
 /* void NSRectFill(NSRect aRect); */
 static PyObject* objc_NSRectFill(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
 {
 	Py_INCREF(Py_None);
 	return result;
 }
-/* NSColor *NSReadPixel(NSPoint passedPoint); */
-static PyObject* objc_NSReadPixel(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "passedPoint", NULL };
-	PyObject* result;
-	NSColor* objc_result;
-	NSPoint objc_passedPoint;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSReadPixel", keywords, convert_NSPoint, &objc_passedPoint)) return NULL;
-	NS_DURING
-		objc_result = NSReadPixel(
-objc_passedPoint);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
 /* void NSCopyBits(int srcGState, NSRect srcRect, NSPoint destPoint); */
 static PyObject* objc_NSCopyBits(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
 {
 	Py_INCREF(Py_None);
 	return result;
 }
-/* NSInterfaceStyle NSInterfaceStyleForKey(NSString *key, NSResponder *responder); */
-static PyObject* objc_NSInterfaceStyleForKey(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "key", "responder", NULL };
-	PyObject* result;
-	NSInterfaceStyle objc_result;
-	id objc_key;
-	id objc_responder;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&:NSInterfaceStyleForKey", keywords, convert_id, &objc_key, convert_id, &objc_responder)) return NULL;
-	NS_DURING
-		objc_result = NSInterfaceStyleForKey(
-objc_key, objc_responder);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyInt_FromLong(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
-/* int NSRunAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...); */
-static PyObject* objc_NSRunAlertPanel(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "title", "msg", "defaultButton", "alternateButton", "otherButton", NULL };
-	PyObject* result;
-	int objc_result;
-	id objc_title;
-	id objc_msg;
-	id objc_defaultButton;
-	id objc_alternateButton;
-	id objc_otherButton;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&O&O&O&:NSRunAlertPanel", keywords, convert_id, &objc_title, convert_id, &objc_msg, convert_id, &objc_defaultButton, convert_id, &objc_alternateButton, convert_id, &objc_otherButton)) return NULL;
-	NS_DURING
-		objc_result = NSRunAlertPanel(
-objc_title, objc_msg, objc_defaultButton, objc_alternateButton, objc_otherButton);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyInt_FromLong(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
-/* int NSRunInformationalAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...); */
-static PyObject* objc_NSRunInformationalAlertPanel(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "title", "msg", "defaultButton", "alternateButton", "otherButton", NULL };
-	PyObject* result;
-	int objc_result;
-	id objc_title;
-	id objc_msg;
-	id objc_defaultButton;
-	id objc_alternateButton;
-	id objc_otherButton;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&O&O&O&:NSRunInformationalAlertPanel", keywords, convert_id, &objc_title, convert_id, &objc_msg, convert_id, &objc_defaultButton, convert_id, &objc_alternateButton, convert_id, &objc_otherButton)) return NULL;
-	NS_DURING
-		objc_result = NSRunInformationalAlertPanel(
-objc_title, objc_msg, objc_defaultButton, objc_alternateButton, objc_otherButton);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyInt_FromLong(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
-/* int NSRunCriticalAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...); */
-static PyObject* objc_NSRunCriticalAlertPanel(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "title", "msg", "defaultButton", "alternateButton", "otherButton", NULL };
-	PyObject* result;
-	int objc_result;
-	id objc_title;
-	id objc_msg;
-	id objc_defaultButton;
-	id objc_alternateButton;
-	id objc_otherButton;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&O&O&O&:NSRunCriticalAlertPanel", keywords, convert_id, &objc_title, convert_id, &objc_msg, convert_id, &objc_defaultButton, convert_id, &objc_alternateButton, convert_id, &objc_otherButton)) return NULL;
-	NS_DURING
-		objc_result = NSRunCriticalAlertPanel(
-objc_title, objc_msg, objc_defaultButton, objc_alternateButton, objc_otherButton);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyInt_FromLong(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
-/* int NSRunAlertPanelRelativeToWindow(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, ...); */
-static PyObject* objc_NSRunAlertPanelRelativeToWindow(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "title", "msg", "defaultButton", "alternateButton", "otherButton", "docWindow", NULL };
-	PyObject* result;
-	int objc_result;
-	id objc_title;
-	id objc_msg;
-	id objc_defaultButton;
-	id objc_alternateButton;
-	id objc_otherButton;
-	id objc_docWindow;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&O&O&O&O&:NSRunAlertPanelRelativeToWindow", keywords, convert_id, &objc_title, convert_id, &objc_msg, convert_id, &objc_defaultButton, convert_id, &objc_alternateButton, convert_id, &objc_otherButton, convert_id, &objc_docWindow)) return NULL;
-	NS_DURING
-		objc_result = NSRunAlertPanelRelativeToWindow(
-objc_title, objc_msg, objc_defaultButton, objc_alternateButton, objc_otherButton, objc_docWindow);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyInt_FromLong(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
-/* int NSRunInformationalAlertPanelRelativeToWindow(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, ...); */
-static PyObject* objc_NSRunInformationalAlertPanelRelativeToWindow(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "title", "msg", "defaultButton", "alternateButton", "otherButton", "docWindow", NULL };
-	PyObject* result;
-	int objc_result;
-	id objc_title;
-	id objc_msg;
-	id objc_defaultButton;
-	id objc_alternateButton;
-	id objc_otherButton;
-	id objc_docWindow;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&O&O&O&O&:NSRunInformationalAlertPanelRelativeToWindow", keywords, convert_id, &objc_title, convert_id, &objc_msg, convert_id, &objc_defaultButton, convert_id, &objc_alternateButton, convert_id, &objc_otherButton, convert_id, &objc_docWindow)) return NULL;
-	NS_DURING
-		objc_result = NSRunInformationalAlertPanelRelativeToWindow(
-objc_title, objc_msg, objc_defaultButton, objc_alternateButton, objc_otherButton, objc_docWindow);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyInt_FromLong(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
-/* int NSRunCriticalAlertPanelRelativeToWindow(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, ...); */
-static PyObject* objc_NSRunCriticalAlertPanelRelativeToWindow(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "title", "msg", "defaultButton", "alternateButton", "otherButton", "docWindow", NULL };
-	PyObject* result;
-	int objc_result;
-	id objc_title;
-	id objc_msg;
-	id objc_defaultButton;
-	id objc_alternateButton;
-	id objc_otherButton;
-	id objc_docWindow;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&O&O&O&O&:NSRunCriticalAlertPanelRelativeToWindow", keywords, convert_id, &objc_title, convert_id, &objc_msg, convert_id, &objc_defaultButton, convert_id, &objc_alternateButton, convert_id, &objc_otherButton, convert_id, &objc_docWindow)) return NULL;
-	NS_DURING
-		objc_result = NSRunCriticalAlertPanelRelativeToWindow(
-objc_title, objc_msg, objc_defaultButton, objc_alternateButton, objc_otherButton, objc_docWindow);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyInt_FromLong(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
-/* void NSBeginAlertSheet(NSString *title, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, id modalDelegate, SEL didEndSelector, SEL didDismissSelector, void *contextInfo, NSString *msg, ...); */
-static PyObject* objc_NSBeginAlertSheet(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "title", "defaultButton", "alternateButton", "otherButton", "docWindow", "modalDelegate", "didEndSelector", "didDismissSelector", "contextInfo", "msg", NULL };
-	PyObject* result;
-	id objc_title;
-	id objc_defaultButton;
-	id objc_alternateButton;
-	id objc_otherButton;
-	id objc_docWindow;
-	id objc_modalDelegate;
-	SEL objc_didEndSelector;
-	SEL objc_didDismissSelector;
-	PYOBJC_VOIDPTR objc_contextInfo;
-	id objc_msg;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&O&O&O&O&O&O&iO&:NSBeginAlertSheet", keywords, convert_id, &objc_title, convert_id, &objc_defaultButton, convert_id, &objc_alternateButton, convert_id, &objc_otherButton, convert_id, &objc_docWindow, convert_id, &objc_modalDelegate, convert_SEL, &objc_didEndSelector, convert_SEL, &objc_didDismissSelector, &objc_contextInfo, convert_id, &objc_msg)) return NULL;
-	NS_DURING
-		NSBeginAlertSheet(
-objc_title, objc_defaultButton, objc_alternateButton, objc_otherButton, objc_docWindow, objc_modalDelegate, objc_didEndSelector, objc_didDismissSelector, objc_contextInfo, objc_msg);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-	result = Py_None;
-	Py_INCREF(Py_None);
-	return result;
-}
-/* void NSBeginInformationalAlertSheet(NSString *title, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, id modalDelegate, SEL didEndSelector, SEL didDismissSelector, void *contextInfo, NSString *msg, ...); */
-static PyObject* objc_NSBeginInformationalAlertSheet(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "title", "defaultButton", "alternateButton", "otherButton", "docWindow", "modalDelegate", "didEndSelector", "didDismissSelector", "contextInfo", "msg", NULL };
-	PyObject* result;
-	id objc_title;
-	id objc_defaultButton;
-	id objc_alternateButton;
-	id objc_otherButton;
-	id objc_docWindow;
-	id objc_modalDelegate;
-	SEL objc_didEndSelector;
-	SEL objc_didDismissSelector;
-	PYOBJC_VOIDPTR objc_contextInfo;
-	id objc_msg;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&O&O&O&O&O&O&iO&:NSBeginInformationalAlertSheet", keywords, convert_id, &objc_title, convert_id, &objc_defaultButton, convert_id, &objc_alternateButton, convert_id, &objc_otherButton, convert_id, &objc_docWindow, convert_id, &objc_modalDelegate, convert_SEL, &objc_didEndSelector, convert_SEL, &objc_didDismissSelector, &objc_contextInfo, convert_id, &objc_msg)) return NULL;
-	NS_DURING
-		NSBeginInformationalAlertSheet(
-objc_title, objc_defaultButton, objc_alternateButton, objc_otherButton, objc_docWindow, objc_modalDelegate, objc_didEndSelector, objc_didDismissSelector, objc_contextInfo, objc_msg);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-	result = Py_None;
-	Py_INCREF(Py_None);
-	return result;
-}
-/* void NSBeginCriticalAlertSheet(NSString *title, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, id modalDelegate, SEL didEndSelector, SEL didDismissSelector, void *contextInfo, NSString *msg, ...); */
-static PyObject* objc_NSBeginCriticalAlertSheet(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "title", "defaultButton", "alternateButton", "otherButton", "docWindow", "modalDelegate", "didEndSelector", "didDismissSelector", "contextInfo", "msg", NULL };
-	PyObject* result;
-	id objc_title;
-	id objc_defaultButton;
-	id objc_alternateButton;
-	id objc_otherButton;
-	id objc_docWindow;
-	id objc_modalDelegate;
-	SEL objc_didEndSelector;
-	SEL objc_didDismissSelector;
-	PYOBJC_VOIDPTR objc_contextInfo;
-	id objc_msg;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&O&O&O&O&O&O&iO&:NSBeginCriticalAlertSheet", keywords, convert_id, &objc_title, convert_id, &objc_defaultButton, convert_id, &objc_alternateButton, convert_id, &objc_otherButton, convert_id, &objc_docWindow, convert_id, &objc_modalDelegate, convert_SEL, &objc_didEndSelector, convert_SEL, &objc_didDismissSelector, &objc_contextInfo, convert_id, &objc_msg)) return NULL;
-	NS_DURING
-		NSBeginCriticalAlertSheet(
-objc_title, objc_defaultButton, objc_alternateButton, objc_otherButton, objc_docWindow, objc_modalDelegate, objc_didEndSelector, objc_didDismissSelector, objc_contextInfo, objc_msg);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-	result = Py_None;
-	Py_INCREF(Py_None);
-	return result;
-}
-/* id NSGetAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...); */
-static PyObject* objc_NSGetAlertPanel(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "title", "msg", "defaultButton", "alternateButton", "otherButton", NULL };
-	PyObject* result;
-	id objc_result;
-	id objc_title;
-	id objc_msg;
-	id objc_defaultButton;
-	id objc_alternateButton;
-	id objc_otherButton;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&O&O&O&:NSGetAlertPanel", keywords, convert_id, &objc_title, convert_id, &objc_msg, convert_id, &objc_defaultButton, convert_id, &objc_alternateButton, convert_id, &objc_otherButton)) return NULL;
-	NS_DURING
-		objc_result = NSGetAlertPanel(
-objc_title, objc_msg, objc_defaultButton, objc_alternateButton, objc_otherButton);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* id NSGetInformationalAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...); */
-static PyObject* objc_NSGetInformationalAlertPanel(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "title", "msg", "defaultButton", "alternateButton", "otherButton", NULL };
-	PyObject* result;
-	id objc_result;
-	id objc_title;
-	id objc_msg;
-	id objc_defaultButton;
-	id objc_alternateButton;
-	id objc_otherButton;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&O&O&O&:NSGetInformationalAlertPanel", keywords, convert_id, &objc_title, convert_id, &objc_msg, convert_id, &objc_defaultButton, convert_id, &objc_alternateButton, convert_id, &objc_otherButton)) return NULL;
-	NS_DURING
-		objc_result = NSGetInformationalAlertPanel(
-objc_title, objc_msg, objc_defaultButton, objc_alternateButton, objc_otherButton);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* id NSGetCriticalAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...); */
-static PyObject* objc_NSGetCriticalAlertPanel(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "title", "msg", "defaultButton", "alternateButton", "otherButton", NULL };
-	PyObject* result;
-	id objc_result;
-	id objc_title;
-	id objc_msg;
-	id objc_defaultButton;
-	id objc_alternateButton;
-	id objc_otherButton;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&O&O&O&:NSGetCriticalAlertPanel", keywords, convert_id, &objc_title, convert_id, &objc_msg, convert_id, &objc_defaultButton, convert_id, &objc_alternateButton, convert_id, &objc_otherButton)) return NULL;
-	NS_DURING
-		objc_result = NSGetCriticalAlertPanel(
-objc_title, objc_msg, objc_defaultButton, objc_alternateButton, objc_otherButton);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
 /* void NSReleaseAlertPanel(id panel); */
 static PyObject* objc_NSReleaseAlertPanel(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
 {
 	Py_INCREF(Py_None);
 	return result;
 }
-/* NSString *NSCreateFilenamePboardType(NSString *fileType); */
-static PyObject* objc_NSCreateFilenamePboardType(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "fileType", NULL };
-	PyObject* result;
-	NSString* objc_result;
-	id objc_fileType;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSCreateFilenamePboardType", keywords, convert_id, &objc_fileType)) return NULL;
-	NS_DURING
-		objc_result = NSCreateFilenamePboardType(
-objc_fileType);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* NSString *NSCreateFileContentsPboardType(NSString *fileType); */
-static PyObject* objc_NSCreateFileContentsPboardType(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "fileType", NULL };
-	PyObject* result;
-	NSString* objc_result;
-	id objc_fileType;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSCreateFileContentsPboardType", keywords, convert_id, &objc_fileType)) return NULL;
-	NS_DURING
-		objc_result = NSCreateFileContentsPboardType(
-objc_fileType);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* NSString *NSGetFileType(NSString *pboardType); */
-static PyObject* objc_NSGetFileType(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "pboardType", NULL };
-	PyObject* result;
-	NSString* objc_result;
-	id objc_pboardType;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSGetFileType", keywords, convert_id, &objc_pboardType)) return NULL;
-	NS_DURING
-		objc_result = NSGetFileType(
-objc_pboardType);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* NSArray *NSGetFileTypes(NSArray *pboardTypes); */
-static PyObject* objc_NSGetFileTypes(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "pboardTypes", NULL };
-	PyObject* result;
-	NSArray* objc_result;
-	id objc_pboardTypes;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSGetFileTypes", keywords, convert_id, &objc_pboardTypes)) return NULL;
-	NS_DURING
-		objc_result = NSGetFileTypes(
-objc_pboardTypes);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
 
 #define METHOD_TABLE_ENTRIES \
 	{ "NSAccessibilityUnignoredAncestor", (PyCFunction)objc_NSAccessibilityUnignoredAncestor, METH_VARARGS|METH_KEYWORDS, "id NSAccessibilityUnignoredAncestor(id element);" }, \
 	{ "NSAccessibilityUnignoredDescendant", (PyCFunction)objc_NSAccessibilityUnignoredDescendant, METH_VARARGS|METH_KEYWORDS, "id NSAccessibilityUnignoredDescendant(id element);" }, \
-	{ "NSAccessibilityUnignoredChildren", (PyCFunction)objc_NSAccessibilityUnignoredChildren, METH_VARARGS|METH_KEYWORDS, "NSArray *NSAccessibilityUnignoredChildren(NSArray *originalChildren);" }, \
-	{ "NSAccessibilityUnignoredChildrenForOnlyChild", (PyCFunction)objc_NSAccessibilityUnignoredChildrenForOnlyChild, METH_VARARGS|METH_KEYWORDS, "NSArray *NSAccessibilityUnignoredChildrenForOnlyChild(id originalChild);" }, \
-	{ "NSAccessibilityPostNotification", (PyCFunction)objc_NSAccessibilityPostNotification, METH_VARARGS|METH_KEYWORDS, "void NSAccessibilityPostNotification(id element, NSString *notification);" }, \
 	{ "NSApplicationLoad", (PyCFunction)objc_NSApplicationLoad, METH_VARARGS|METH_KEYWORDS, "BOOL NSApplicationLoad(void);" }, \
-	{ "NSShowsServicesMenuItem", (PyCFunction)objc_NSShowsServicesMenuItem, METH_VARARGS|METH_KEYWORDS, "BOOL NSShowsServicesMenuItem(NSString * itemName);" }, \
-	{ "NSSetShowsServicesMenuItem", (PyCFunction)objc_NSSetShowsServicesMenuItem, METH_VARARGS|METH_KEYWORDS, "int NSSetShowsServicesMenuItem(NSString * itemName, BOOL enabled);" }, \
 	{ "NSUpdateDynamicServices", (PyCFunction)objc_NSUpdateDynamicServices, METH_VARARGS|METH_KEYWORDS, "void NSUpdateDynamicServices(void);" }, \
-	{ "NSPerformService", (PyCFunction)objc_NSPerformService, METH_VARARGS|METH_KEYWORDS, "BOOL NSPerformService(NSString *itemName, NSPasteboard *pboard);" }, \
-	{ "NSRegisterServicesProvider", (PyCFunction)objc_NSRegisterServicesProvider, METH_VARARGS|METH_KEYWORDS, "void NSRegisterServicesProvider(id provider, NSString *name);" }, \
-	{ "NSUnregisterServicesProvider", (PyCFunction)objc_NSUnregisterServicesProvider, METH_VARARGS|METH_KEYWORDS, "void NSUnregisterServicesProvider(NSString *name);" }, \
 	{ "NSPlanarFromDepth", (PyCFunction)objc_NSPlanarFromDepth, METH_VARARGS|METH_KEYWORDS, "BOOL NSPlanarFromDepth (NSWindowDepth depth);" }, \
-	{ "NSColorSpaceFromDepth", (PyCFunction)objc_NSColorSpaceFromDepth, METH_VARARGS|METH_KEYWORDS, "NSString *NSColorSpaceFromDepth (NSWindowDepth depth);" }, \
 	{ "NSBitsPerSampleFromDepth", (PyCFunction)objc_NSBitsPerSampleFromDepth, METH_VARARGS|METH_KEYWORDS, "int NSBitsPerSampleFromDepth (NSWindowDepth depth);" }, \
 	{ "NSBitsPerPixelFromDepth", (PyCFunction)objc_NSBitsPerPixelFromDepth, METH_VARARGS|METH_KEYWORDS, "int NSBitsPerPixelFromDepth (NSWindowDepth depth);" }, \
-	{ "NSNumberOfColorComponents", (PyCFunction)objc_NSNumberOfColorComponents, METH_VARARGS|METH_KEYWORDS, "int NSNumberOfColorComponents (NSString *colorSpaceName);" }, \
 	{ "NSRectFill", (PyCFunction)objc_NSRectFill, METH_VARARGS|METH_KEYWORDS, "void NSRectFill(NSRect aRect);" }, \
 	{ "NSRectFillUsingOperation", (PyCFunction)objc_NSRectFillUsingOperation, METH_VARARGS|METH_KEYWORDS, "void NSRectFillUsingOperation(NSRect aRect, NSCompositingOperation op);" }, \
 	{ "NSFrameRect", (PyCFunction)objc_NSFrameRect, METH_VARARGS|METH_KEYWORDS, "void NSFrameRect(NSRect aRect);" }, \
 	{ "NSDrawWhiteBezel", (PyCFunction)objc_NSDrawWhiteBezel, METH_VARARGS|METH_KEYWORDS, "void NSDrawWhiteBezel(NSRect aRect, NSRect clipRect);" }, \
 	{ "NSDrawButton", (PyCFunction)objc_NSDrawButton, METH_VARARGS|METH_KEYWORDS, "void NSDrawButton(NSRect aRect, NSRect clipRect);" }, \
 	{ "NSEraseRect", (PyCFunction)objc_NSEraseRect, METH_VARARGS|METH_KEYWORDS, "void NSEraseRect(NSRect aRect);" }, \
-	{ "NSReadPixel", (PyCFunction)objc_NSReadPixel, METH_VARARGS|METH_KEYWORDS, "NSColor *NSReadPixel(NSPoint passedPoint);" }, \
 	{ "NSCopyBits", (PyCFunction)objc_NSCopyBits, METH_VARARGS|METH_KEYWORDS, "void NSCopyBits(int srcGState, NSRect srcRect, NSPoint destPoint);" }, \
 	{ "NSHighlightRect", (PyCFunction)objc_NSHighlightRect, METH_VARARGS|METH_KEYWORDS, "void NSHighlightRect(NSRect aRect);" }, \
 	{ "NSBeep", (PyCFunction)objc_NSBeep, METH_VARARGS|METH_KEYWORDS, "void NSBeep(void);" }, \
 	{ "NSDottedFrameRect", (PyCFunction)objc_NSDottedFrameRect, METH_VARARGS|METH_KEYWORDS, "void NSDottedFrameRect(NSRect aRect);" }, \
 	{ "NSDrawWindowBackground", (PyCFunction)objc_NSDrawWindowBackground, METH_VARARGS|METH_KEYWORDS, "void NSDrawWindowBackground(NSRect aRect);" }, \
 	{ "NSSetFocusRingStyle", (PyCFunction)objc_NSSetFocusRingStyle, METH_VARARGS|METH_KEYWORDS, "void NSSetFocusRingStyle(NSFocusRingPlacement placement);" }, \
-	{ "NSInterfaceStyleForKey", (PyCFunction)objc_NSInterfaceStyleForKey, METH_VARARGS|METH_KEYWORDS, "NSInterfaceStyle NSInterfaceStyleForKey(NSString *key, NSResponder *responder);" }, \
-	{ "NSRunAlertPanel", (PyCFunction)objc_NSRunAlertPanel, METH_VARARGS|METH_KEYWORDS, "int NSRunAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...);" }, \
-	{ "NSRunInformationalAlertPanel", (PyCFunction)objc_NSRunInformationalAlertPanel, METH_VARARGS|METH_KEYWORDS, "int NSRunInformationalAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...);" }, \
-	{ "NSRunCriticalAlertPanel", (PyCFunction)objc_NSRunCriticalAlertPanel, METH_VARARGS|METH_KEYWORDS, "int NSRunCriticalAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...);" }, \
-	{ "NSRunAlertPanelRelativeToWindow", (PyCFunction)objc_NSRunAlertPanelRelativeToWindow, METH_VARARGS|METH_KEYWORDS, "int NSRunAlertPanelRelativeToWindow(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, ...);" }, \
-	{ "NSRunInformationalAlertPanelRelativeToWindow", (PyCFunction)objc_NSRunInformationalAlertPanelRelativeToWindow, METH_VARARGS|METH_KEYWORDS, "int NSRunInformationalAlertPanelRelativeToWindow(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, ...);" }, \
-	{ "NSRunCriticalAlertPanelRelativeToWindow", (PyCFunction)objc_NSRunCriticalAlertPanelRelativeToWindow, METH_VARARGS|METH_KEYWORDS, "int NSRunCriticalAlertPanelRelativeToWindow(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, ...);" }, \
-	{ "NSBeginAlertSheet", (PyCFunction)objc_NSBeginAlertSheet, METH_VARARGS|METH_KEYWORDS, "void NSBeginAlertSheet(NSString *title, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, id modalDelegate, SEL didEndSelector, SEL didDismissSelector, void *contextInfo, NSString *msg, ...);" }, \
-	{ "NSBeginInformationalAlertSheet", (PyCFunction)objc_NSBeginInformationalAlertSheet, METH_VARARGS|METH_KEYWORDS, "void NSBeginInformationalAlertSheet(NSString *title, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, id modalDelegate, SEL didEndSelector, SEL didDismissSelector, void *contextInfo, NSString *msg, ...);" }, \
-	{ "NSBeginCriticalAlertSheet", (PyCFunction)objc_NSBeginCriticalAlertSheet, METH_VARARGS|METH_KEYWORDS, "void NSBeginCriticalAlertSheet(NSString *title, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, id modalDelegate, SEL didEndSelector, SEL didDismissSelector, void *contextInfo, NSString *msg, ...);" }, \
-	{ "NSGetAlertPanel", (PyCFunction)objc_NSGetAlertPanel, METH_VARARGS|METH_KEYWORDS, "id NSGetAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...);" }, \
-	{ "NSGetInformationalAlertPanel", (PyCFunction)objc_NSGetInformationalAlertPanel, METH_VARARGS|METH_KEYWORDS, "id NSGetInformationalAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...);" }, \
-	{ "NSGetCriticalAlertPanel", (PyCFunction)objc_NSGetCriticalAlertPanel, METH_VARARGS|METH_KEYWORDS, "id NSGetCriticalAlertPanel(NSString *title, NSString *msg, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, ...);" }, \
 	{ "NSReleaseAlertPanel", (PyCFunction)objc_NSReleaseAlertPanel, METH_VARARGS|METH_KEYWORDS, "void NSReleaseAlertPanel(id panel);" }, \
-	{ "NSCreateFilenamePboardType", (PyCFunction)objc_NSCreateFilenamePboardType, METH_VARARGS|METH_KEYWORDS, "NSString *NSCreateFilenamePboardType(NSString *fileType);" }, \
-	{ "NSCreateFileContentsPboardType", (PyCFunction)objc_NSCreateFileContentsPboardType, METH_VARARGS|METH_KEYWORDS, "NSString *NSCreateFileContentsPboardType(NSString *fileType);" }, \
-	{ "NSGetFileType", (PyCFunction)objc_NSGetFileType, METH_VARARGS|METH_KEYWORDS, "NSString *NSGetFileType(NSString *pboardType);" }, \
-	{ "NSGetFileTypes", (PyCFunction)objc_NSGetFileTypes, METH_VARARGS|METH_KEYWORDS, "NSArray *NSGetFileTypes(NSArray *pboardTypes);" }, \
 	/* END */

pyobjc/Modules/Foundation/_Fnd_Functions.inc

 	return 1;
 }
 
-/* NSObject *NXReadNSObjectFromCoder(NSCoder *decoder); */
-static PyObject* objc_NXReadNSObjectFromCoder(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "decoder", NULL };
-	PyObject* result;
-	NSObject* objc_result;
-	id objc_decoder;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NXReadNSObjectFromCoder", keywords, convert_id, &objc_decoder)) return NULL;
-	NS_DURING
-		objc_result = NXReadNSObjectFromCoder(
-objc_decoder);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
 /* BOOL NSIsFreedObject(id anObject); */
 static PyObject* objc_NSIsFreedObject(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
 {
 	if (result == NULL) return NULL;
 	return result;
 }
-/* NSString *NSStringFromPoint(NSPoint aPoint); */
-static PyObject* objc_NSStringFromPoint(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "aPoint", NULL };
-	PyObject* result;
-	NSString* objc_result;
-	NSPoint objc_aPoint;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSStringFromPoint", keywords, convert_NSPoint, &objc_aPoint)) return NULL;
-	NS_DURING
-		objc_result = NSStringFromPoint(
-objc_aPoint);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* NSString *NSStringFromSize(NSSize aSize); */
-static PyObject* objc_NSStringFromSize(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "aSize", NULL };
-	PyObject* result;
-	NSString* objc_result;
-	NSSize objc_aSize;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSStringFromSize", keywords, convert_NSSize, &objc_aSize)) return NULL;
-	NS_DURING
-		objc_result = NSStringFromSize(
-objc_aSize);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* NSString *NSStringFromRect(NSRect aRect); */
-static PyObject* objc_NSStringFromRect(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "aRect", NULL };
-	PyObject* result;
-	NSString* objc_result;
-	NSRect objc_aRect;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSStringFromRect", keywords, convert_NSRect, &objc_aRect)) return NULL;
-	NS_DURING
-		objc_result = NSStringFromRect(
-objc_aRect);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* NSPoint NSPointFromString(NSString *aString); */
-static PyObject* objc_NSPointFromString(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "aString", NULL };
-	PyObject* result;
-	NSPoint objc_result;
-	id objc_aString;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSPointFromString", keywords, convert_id, &objc_aString)) return NULL;
-	NS_DURING
-		objc_result = NSPointFromString(
-objc_aString);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_ObjCToPython(@encode(NSPoint), (void*)&objc_result); 
-	if (result == NULL) return NULL;
-	return result;
-}
-/* NSSize NSSizeFromString(NSString *aString); */
-static PyObject* objc_NSSizeFromString(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "aString", NULL };
-	PyObject* result;
-	NSSize objc_result;
-	id objc_aString;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSSizeFromString", keywords, convert_id, &objc_aString)) return NULL;
-	NS_DURING
-		objc_result = NSSizeFromString(
-objc_aString);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_ObjCToPython(@encode(NSSize), (void*)&objc_result); 
-	if (result == NULL) return NULL;
-	return result;
-}
-/* NSRect NSRectFromString(NSString *aString); */
-static PyObject* objc_NSRectFromString(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "aString", NULL };
-	PyObject* result;
-	NSRect objc_result;
-	id objc_aString;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSRectFromString", keywords, convert_id, &objc_aString)) return NULL;
-	NS_DURING
-		objc_result = NSRectFromString(
-objc_aString);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_ObjCToPython(@encode(NSRect), (void*)&objc_result); 
-	if (result == NULL) return NULL;
-	return result;
-}
-/* NSString *NSHFSTypeOfFile(NSString *fullFilePath); */
-static PyObject* objc_NSHFSTypeOfFile(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "fullFilePath", NULL };
-	PyObject* result;
-	NSString* objc_result;
-	id objc_fullFilePath;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSHFSTypeOfFile", keywords, convert_id, &objc_fullFilePath)) return NULL;
-	NS_DURING
-		objc_result = NSHFSTypeOfFile(
-objc_fullFilePath);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* BOOL NSJavaNeedsVirtualMachine(NSDictionary *plist); */
-static PyObject* objc_NSJavaNeedsVirtualMachine(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "plist", NULL };
-	PyObject* result;
-	BOOL objc_result;
-	id objc_plist;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSJavaNeedsVirtualMachine", keywords, convert_id, &objc_plist)) return NULL;
-	NS_DURING
-		objc_result = NSJavaNeedsVirtualMachine(
-objc_plist);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjCBool_FromLong(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
-/* BOOL NSJavaProvidesClasses(NSDictionary *plist); */
-static PyObject* objc_NSJavaProvidesClasses(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "plist", NULL };
-	PyObject* result;
-	BOOL objc_result;
-	id objc_plist;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSJavaProvidesClasses", keywords, convert_id, &objc_plist)) return NULL;
-	NS_DURING
-		objc_result = NSJavaProvidesClasses(
-objc_plist);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjCBool_FromLong(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
-/* BOOL NSJavaNeedsToLoadClasses(NSDictionary *plist); */
-static PyObject* objc_NSJavaNeedsToLoadClasses(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "plist", NULL };
-	PyObject* result;
-	BOOL objc_result;
-	id objc_plist;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSJavaNeedsToLoadClasses", keywords, convert_id, &objc_plist)) return NULL;
-	NS_DURING
-		objc_result = NSJavaNeedsToLoadClasses(
-objc_plist);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjCBool_FromLong(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
-/* id NSJavaSetup(NSDictionary *plist); */
-static PyObject* objc_NSJavaSetup(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "plist", NULL };
-	PyObject* result;
-	id objc_result;
-	id objc_plist;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSJavaSetup", keywords, convert_id, &objc_plist)) return NULL;
-	NS_DURING
-		objc_result = NSJavaSetup(
-objc_plist);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
 /* id NSJavaSetupVirtualMachine(void); */
 static PyObject* objc_NSJavaSetupVirtualMachine(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
 {
 		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
 	return result;
 }
-/* id NSJavaObjectNamedInPath(NSString *name, NSArray *path); */
-static PyObject* objc_NSJavaObjectNamedInPath(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "name", "path", NULL };
-	PyObject* result;
-	id objc_result;
-	id objc_name;
-	id objc_path;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&:NSJavaObjectNamedInPath", keywords, convert_id, &objc_name, convert_id, &objc_path)) return NULL;
-	NS_DURING
-		objc_result = NSJavaObjectNamedInPath(
-objc_name, objc_path);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* id NSJavaBundleSetup(NSBundle *bundle, NSDictionary *plist); */
-static PyObject* objc_NSJavaBundleSetup(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "bundle", "plist", NULL };
-	PyObject* result;
-	id objc_result;
-	id objc_bundle;
-	id objc_plist;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&:NSJavaBundleSetup", keywords, convert_id, &objc_bundle, convert_id, &objc_plist)) return NULL;
-	NS_DURING
-		objc_result = NSJavaBundleSetup(
-objc_bundle, objc_plist);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* void NSJavaBundleCleanup(NSBundle *bundle, NSDictionary *plist); */
-static PyObject* objc_NSJavaBundleCleanup(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "bundle", "plist", NULL };
-	PyObject* result;
-	id objc_bundle;
-	id objc_plist;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&O&:NSJavaBundleCleanup", keywords, convert_id, &objc_bundle, convert_id, &objc_plist)) return NULL;
-	NS_DURING
-		NSJavaBundleCleanup(
-objc_bundle, objc_plist);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-	result = Py_None;
-	Py_INCREF(Py_None);
-	return result;
-}
-/* NSString *NSStringFromSelector(SEL aSelector); */
-static PyObject* objc_NSStringFromSelector(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "aSelector", NULL };
-	PyObject* result;
-	NSString* objc_result;
-	SEL objc_aSelector;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSStringFromSelector", keywords, convert_SEL, &objc_aSelector)) return NULL;
-	NS_DURING
-		objc_result = NSStringFromSelector(
-objc_aSelector);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* SEL NSSelectorFromString(NSString *aSelectorName); */
-static PyObject* objc_NSSelectorFromString(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "aSelectorName", NULL };
-	PyObject* result;
-	SEL objc_result;
-	id objc_aSelectorName;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSSelectorFromString", keywords, convert_id, &objc_aSelectorName)) return NULL;
-	NS_DURING
-		objc_result = NSSelectorFromString(
-objc_aSelectorName);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyString_FromString(SELNAME(objc_result));
-	if (result == NULL) return NULL;
-	return result;
-}
-/* Class NSClassFromString(NSString *aClassName); */
-static PyObject* objc_NSClassFromString(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "aClassName", NULL };
-	PyObject* result;
-	Class objc_result;
-	id objc_aClassName;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSClassFromString", keywords, convert_id, &objc_aClassName)) return NULL;
-	NS_DURING
-		objc_result = NSClassFromString(
-objc_aClassName);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjCClass_New(objc_result);
-	if (result == NULL) return NULL;
-	return result;
-}
-/* NSString *NSStringFromClass(Class aClass); */
-static PyObject* objc_NSStringFromClass(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "aClass", NULL };
-	PyObject* result;
-	NSString* objc_result;
-	Class objc_aClass;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSStringFromClass", keywords, convert_Class, &objc_aClass)) return NULL;
-	NS_DURING
-		objc_result = NSStringFromClass(
-objc_aClass);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* void NSLog(NSString *format, ...); */
-static PyObject* objc_NSLog(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "format", NULL };
-	PyObject* result;
-	id objc_format;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSLog", keywords, convert_id, &objc_format)) return NULL;
-	NS_DURING
-		NSLog(
-objc_format);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-	result = Py_None;
-	Py_INCREF(Py_None);
-	return result;
-}
 /* void NSDeallocateObject(id <NSObject>object); */
 static PyObject* objc_NSDeallocateObject(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
 {
 	if (result == NULL) return NULL;
 	return result;
 }
-/* NSString *NSUserName(void); */
-static PyObject* objc_NSUserName(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { NULL };
-	PyObject* result;
-	NSString* objc_result;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, ":NSUserName", keywords)) return NULL;
-	NS_DURING
-		objc_result = NSUserName(
-);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* NSString *NSFullUserName(void); */
-static PyObject* objc_NSFullUserName(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { NULL };
-	PyObject* result;
-	NSString* objc_result;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, ":NSFullUserName", keywords)) return NULL;
-	NS_DURING
-		objc_result = NSFullUserName(
-);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* NSString *NSHomeDirectory(void); */
-static PyObject* objc_NSHomeDirectory(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { NULL };
-	PyObject* result;
-	NSString* objc_result;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, ":NSHomeDirectory", keywords)) return NULL;
-	NS_DURING
-		objc_result = NSHomeDirectory(
-);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);
-		return NULL;
-	NS_ENDHANDLER
-		result = PyObjC_IdToPython(objc_result); if (result == NULL) return NULL;
-	return result;
-}
-/* NSString *NSHomeDirectoryForUser(NSString *userName); */
-static PyObject* objc_NSHomeDirectoryForUser(PyObject* self __attribute__((__unused__)), PyObject* args, PyObject* kwds)
-{
-static	char* keywords[] = { "userName", NULL };
-	PyObject* result;
-	NSString* objc_result;
-	id objc_userName;
-
-	if (!PyArg_ParseTupleAndKeywords(args, kwds, "O&:NSHomeDirectoryForUser", keywords, convert_id, &objc_userName)) return NULL;
-	NS_DURING
-		objc_result = NSHomeDirectoryForUser(
-objc_userName);
-	NS_HANDLER
-		PyObjCErr_FromObjC(localException);