Commits

Ronald Oussoren  committed a293e53

update to ensure the new protocols.m files compile correctly

  • Participants
  • Parent commits 66169b9
  • Branches pyobjc-2.5.x

Comments (0)

Files changed (8)

File pyobjc-framework-AddressBook/Modules/_AddressBook_protocols.m

 /* 
  * This file is generated by objective.metadata
  *
- * Last update: Tue Jan 15 18:56:43 2013
+ * Last update: Wed Jan 16 13:10:52 2013
  */
 
 static void __attribute__((__used__)) use_protocols(void)

File pyobjc-framework-Cocoa/Modules/_AppKit_protocols.m

 /* 
  * This file is generated by objective.metadata
  *
- * Last update: Tue Jan 15 18:57:46 2013
+ * Last update: Wed Jan 16 13:13:20 2013
  */
 
 static void __attribute__((__used__)) use_protocols(void)
 {
     PyObject* p;
+#if PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_6
     p = PyObjC_IdToPython(@protocol(NSAlertDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSAnimatablePropertyContainer)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSAnimationDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSUserInterfaceValidations)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSValidatedUserInterfaceItem)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSWindowDelegate)); Py_XDECREF(p);
-#if defined(MAC_OS_X_VERSION_10_7)
+#endif /* PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_6 */
+#if PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_7
     p = PyObjC_IdToPython(@protocol(NSDraggingDestination)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSDraggingSource)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSPopoverDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSTextLayoutOrientationProvider)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSUserInterfaceItemIdentification)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSWindowRestoration)); Py_XDECREF(p);
-#endif /* defined(MAC_OS_X_VERSION_10_7) */
-#if defined(MAC_OS_X_VERSION_10_8)
+#endif /* PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_7 */
+#if PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_8
     p = PyObjC_IdToPython(@protocol(NSPageControllerDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSSharingServiceDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSSharingServicePickerDelegate)); Py_XDECREF(p);
-#endif /* defined(MAC_OS_X_VERSION_10_8) */
+#endif /* PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_8 */
 }

File pyobjc-framework-Cocoa/Modules/_Foundation_protocols.m

 /* 
  * This file is generated by objective.metadata
  *
- * Last update: Tue Jan 15 18:57:44 2013
+ * Last update: Wed Jan 16 13:13:17 2013
  */
 
 static void __attribute__((__used__)) use_protocols(void)
 {
     PyObject* p;
+#if PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_5
+    p = PyObjC_IdToPython(@protocol(NSCoding)); Py_XDECREF(p);
+    p = PyObjC_IdToPython(@protocol(NSCopying)); Py_XDECREF(p);
+    p = PyObjC_IdToPython(@protocol(NSDecimalNumberBehaviors)); Py_XDECREF(p);
+    p = PyObjC_IdToPython(@protocol(NSFastEnumeration)); Py_XDECREF(p);
+    p = PyObjC_IdToPython(@protocol(NSLocking)); Py_XDECREF(p);
+    p = PyObjC_IdToPython(@protocol(NSMutableCopying)); Py_XDECREF(p);
+    p = PyObjC_IdToPython(@protocol(NSObject)); Py_XDECREF(p);
+    p = PyObjC_IdToPython(@protocol(NSURLAuthenticationChallengeSender)); Py_XDECREF(p);
+    p = PyObjC_IdToPython(@protocol(NSURLHandleClient)); Py_XDECREF(p);
+    p = PyObjC_IdToPython(@protocol(NSURLProtocolClient)); Py_XDECREF(p);
+#endif /* PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_5 */
+#if PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_6
     p = PyObjC_IdToPython(@protocol(NSCacheDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSConnectionDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSDiscardableContent)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSSpellServerDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSStreamDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSXMLParserDelegate)); Py_XDECREF(p);
-#if defined(MAC_OS_X_VERSION_10_5)
-    p = PyObjC_IdToPython(@protocol(NSCoding)); Py_XDECREF(p);
-    p = PyObjC_IdToPython(@protocol(NSCopying)); Py_XDECREF(p);
-    p = PyObjC_IdToPython(@protocol(NSDecimalNumberBehaviors)); Py_XDECREF(p);
-    p = PyObjC_IdToPython(@protocol(NSFastEnumeration)); Py_XDECREF(p);
-    p = PyObjC_IdToPython(@protocol(NSLocking)); Py_XDECREF(p);
-    p = PyObjC_IdToPython(@protocol(NSMutableCopying)); Py_XDECREF(p);
-    p = PyObjC_IdToPython(@protocol(NSObject)); Py_XDECREF(p);
-    p = PyObjC_IdToPython(@protocol(NSURLAuthenticationChallengeSender)); Py_XDECREF(p);
-    p = PyObjC_IdToPython(@protocol(NSURLHandleClient)); Py_XDECREF(p);
-    p = PyObjC_IdToPython(@protocol(NSURLProtocolClient)); Py_XDECREF(p);
-#endif /* defined(MAC_OS_X_VERSION_10_5) */
-#if defined(MAC_OS_X_VERSION_10_7)
+#endif /* PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_6 */
+#if PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_7
     p = PyObjC_IdToPython(@protocol(NSFileManagerDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSFilePresenter)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSURLConnectionDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSURLDownloadDelegate)); Py_XDECREF(p);
-#endif /* defined(MAC_OS_X_VERSION_10_7) */
-#if defined(MAC_OS_X_VERSION_10_8)
+#endif /* PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_7 */
+#if PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_8
     p = PyObjC_IdToPython(@protocol(NSSecureCoding)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSURLConnectionDataDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSURLConnectionDownloadDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSUserNotificationCenterDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSXPCListenerDelegate)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(NSXPCProxyCreating)); Py_XDECREF(p);
-#endif /* defined(MAC_OS_X_VERSION_10_8) */
+#endif /* PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_8 */
 }

File pyobjc-framework-CoreLocation/Modules/_CoreLocation_protocols.m

 /* 
  * This file is generated by objective.metadata
  *
- * Last update: Tue Jan 15 18:57:31 2013
+ * Last update: Wed Jan 16 13:11:14 2013
  */
 
 static void __attribute__((__used__)) use_protocols(void)

File pyobjc-framework-InputMethodKit/Modules/_InputMethodKit_protocols.m

 /* 
  * This file is generated by objective.metadata
  *
- * Last update: Tue Jan 15 18:32:26 2013
+ * Last update: Wed Jan 16 13:11:31 2013
  */
 
 static void __attribute__((__used__)) use_protocols(void)

File pyobjc-framework-ScriptingBridge/Modules/_ScriptingBridge_protocols.m

 /* 
  * This file is generated by objective.metadata
  *
- * Last update: Tue Jan 15 18:40:50 2013
+ * Last update: Wed Jan 16 13:11:47 2013
  */
 
 static void __attribute__((__used__)) use_protocols(void)

File pyobjc-framework-SyncServices/Modules/_SyncServices_protocols.m

 /* 
  * This file is generated by objective.metadata
  *
- * Last update: Tue Jan 15 18:45:59 2013
+ * Last update: Wed Jan 16 13:12:13 2013
  */
 
 static void __attribute__((__used__)) use_protocols(void)

File pyobjc-framework-WebKit/Modules/_WebKit_protocols.m

 /* 
  * This file is generated by objective.metadata
  *
- * Last update: Tue Jan 15 18:52:03 2013
+ * Last update: Wed Jan 16 13:12:23 2013
  */
 
 static void __attribute__((__used__)) use_protocols(void)
 {
     PyObject* p;
-#if defined(MAC_OS_X_VERSION_10_5)
+#if PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_5
     p = PyObjC_IdToPython(@protocol(DOMEventListener)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(DOMEventTarget)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(DOMNodeFilter)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(WebOpenPanelResultListener)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(WebPlugInViewFactory)); Py_XDECREF(p);
     p = PyObjC_IdToPython(@protocol(WebPolicyDecisionListener)); Py_XDECREF(p);
-#endif /* defined(MAC_OS_X_VERSION_10_5) */
+#endif /* PyObjC_BUILD_RELEASE >= MAC_OS_X_VERSION_10_5 */
 }