Ronald Oussoren avatar Ronald Oussoren committed 1308ced

Port to new metadata system

Comments (0)

Files changed (5)

pyobjc-framework-CalendarStore/Lib/CalendarStore/__init__.py

         '__doc__': __doc__,
         '__path__': __path__,
         'objc': objc,
-    })
+    }, (Foundation,))

pyobjc-framework-Collaboration/BridgeSupport/Collaboration.bridgesupport

+<?xml version='1.0'?>
+<!DOCTYPE signatures SYSTEM "file://localhost/System/Library/DTDs/BridgeSupport.dtd">
+<signatures version='1.0'>
+  <depends_on path='/System/Library/Frameworks/Foundation.framework/Foundation' />
+  <depends_on path='/System/Library/Frameworks/CoreServices.framework/CoreServices' />
+  <class name='CBIdentity'>
+    <method selector='CSIdentity'>
+      <retval type='^{__CSIdentity=}' />
+    </method>
+    <method class_method='true' selector='identityWithCSIdentity:'>
+      <arg index='0' type='^{__CSIdentity=}' />
+    </method>
+    <method selector='isHidden'>
+      <retval type='B' />
+    </method>
+    <method selector='isMemberOfGroup:'>
+      <retval type='B' />
+    </method>
+  </class>
+  <class name='CBIdentityAuthority'>
+    <method selector='CSIdentityAuthority'>
+      <retval type='^{__CSIdentityAuthority=}' />
+    </method>
+    <method class_method='true' selector='identityAuthorityWithCSIdentityAuthority:'>
+      <arg index='0' type='^{__CSIdentityAuthority=}' />
+    </method>
+  </class>
+  <class name='CBIdentityPicker'>
+    <method selector='allowsMultipleSelection'>
+      <retval type='B' />
+    </method>
+    <method selector='runModalForWindow:modalDelegate:didEndSelector:contextInfo:'>
+      <arg index='2' sel_of_type='v@:@i^v' sel_of_type64='v@:@q^v' />
+      <arg index='3' type='^v' />
+    </method>
+    <method selector='setAllowsMultipleSelection:'>
+      <arg index='0' type='B' />
+    </method>
+  </class>
+  <class name='CBUserIdentity'>
+    <method selector='authenticateWithPassword:'>
+      <retval type='B' />
+    </method>
+    <method selector='certificate'>
+      <retval type='^{OpaqueSecCertificateRef=}' />
+    </method>
+    <method selector='isEnabled'>
+      <retval type='B' />
+    </method>
+  </class>
+</signatures>
+

pyobjc-framework-Collaboration/Lib/Collaboration/PyObjC.bridgesupport

-<?xml version='1.0'?>
-<!DOCTYPE signatures SYSTEM "file://localhost/System/Library/DTDs/BridgeSupport.dtd">
-<signatures version='1.0'>
-  <depends_on path='/System/Library/Frameworks/Foundation.framework/Foundation' />
-  <depends_on path='/System/Library/Frameworks/CoreServices.framework/CoreServices' />
-  <class name='CBIdentity'>
-    <method selector='CSIdentity'>
-      <retval type='^{__CSIdentity=}' />
-    </method>
-    <method class_method='true' selector='identityWithCSIdentity:'>
-      <arg index='0' type='^{__CSIdentity=}' />
-    </method>
-    <method selector='isHidden'>
-      <retval type='B' />
-    </method>
-    <method selector='isMemberOfGroup:'>
-      <retval type='B' />
-    </method>
-  </class>
-  <class name='CBIdentityAuthority'>
-    <method selector='CSIdentityAuthority'>
-      <retval type='^{__CSIdentityAuthority=}' />
-    </method>
-    <method class_method='true' selector='identityAuthorityWithCSIdentityAuthority:'>
-      <arg index='0' type='^{__CSIdentityAuthority=}' />
-    </method>
-  </class>
-  <class name='CBIdentityPicker'>
-    <method selector='allowsMultipleSelection'>
-      <retval type='B' />
-    </method>
-    <method selector='runModalForWindow:modalDelegate:didEndSelector:contextInfo:'>
-      <arg index='2' sel_of_type='v@:@i^v' sel_of_type64='v@:@q^v' />
-      <arg index='3' type='^v' />
-    </method>
-    <method selector='setAllowsMultipleSelection:'>
-      <arg index='0' type='B' />
-    </method>
-  </class>
-  <class name='CBUserIdentity'>
-    <method selector='authenticateWithPassword:'>
-      <retval type='B' />
-    </method>
-    <method selector='certificate'>
-      <retval type='^{OpaqueSecCertificateRef=}' />
-    </method>
-    <method selector='isEnabled'>
-      <retval type='B' />
-    </method>
-  </class>
-</signatures>
-

pyobjc-framework-Collaboration/Lib/Collaboration/__init__.py

 documentation for details on how to use these functions and classes. 
 '''
 
-import objc as _objc
-from Foundation import *
+import sys
+import objc
+import Foundation
 
-__bundle__ = _objc.initFrameworkWrapper("Collaboration",
-    frameworkIdentifier="com.apple.Collaboration",
-    frameworkPath=_objc.pathForFramework(
-        "/System/Library/Frameworks/Collaboration.framework"),
-    globals=globals())
+from Collaboration import _metadata
+
+sys.modules['Collaboration'] = objc.ObjCLazyModule(
+    "Collaboration", "com.apple.Collaboration",
+    objc.pathForFramework("/System/Library/Frameworks/Collaboration.framework"),
+    _metadata.__dict__, None, {
+        '__doc__': __doc__,
+        '__path__': __path__,
+        'objc': objc,
+    }, (Foundation,))

pyobjc-framework-Collaboration/Lib/Collaboration/_metadata.py

+# Generated file, don't edit
+# Source: BridgeSupport/Collaboration.bridgesupport
+# Last update: Mon Jul 18 19:19:08 2011
+
+import objc, sys
+
+if sys.maxint > 2 ** 32:
+    def sel32or64(a, b): return b
+else:
+    def sel32or64(a, b): return a
+if sys.byteorder == 'little':
+    def littleOrBig(a, b): return a
+else:
+    def littleOrBig(a, b): return b
+
+misc = {
+}
+constants = '''$'''
+enums = '''$'''
+misc.update({})
+functions = {}
+cftypes = []
+r = objc.registerMetaDataForSelector
+objc._updatingMetadata(True)
+try:
+    pass
+    r('CBIdentity', b'CSIdentity', {'retval': {'type': b'^{__CSIdentity=}'}})
+    r('CBIdentity', b'identityWithCSIdentity:', {'arguments': {2: {'type': b'^{__CSIdentity=}'}}})
+    r('CBIdentity', b'isHidden', {'retval': {'type': b'Z'}})
+    r('CBIdentity', b'isMemberOfGroup:', {'retval': {'type': b'Z'}})
+    r('CBIdentityAuthority', b'CSIdentityAuthority', {'retval': {'type': b'^{__CSIdentityAuthority=}'}})
+    r('CBIdentityAuthority', b'identityAuthorityWithCSIdentityAuthority:', {'arguments': {2: {'type': b'^{__CSIdentityAuthority=}'}}})
+    r('CBIdentityPicker', b'allowsMultipleSelection', {'retval': {'type': b'Z'}})
+    r('CBIdentityPicker', b'runModalForWindow:modalDelegate:didEndSelector:contextInfo:', {'arguments': {4: {'sel_of_type': sel32or64(b'v@:@i^v', b'v@:@q^v')}, 5: {'type': b'^v'}}})
+    r('CBIdentityPicker', b'setAllowsMultipleSelection:', {'arguments': {2: {'type': b'Z'}}})
+    r('CBUserIdentity', b'authenticateWithPassword:', {'retval': {'type': b'Z'}})
+    r('CBUserIdentity', b'certificate', {'retval': {'type': b'^{OpaqueSecCertificateRef=}'}})
+    r('CBUserIdentity', b'isEnabled', {'retval': {'type': b'Z'}})
+finally:
+    objc._updatingMetadata(False)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.