Commits

Ronald Oussoren committed aa1119d Merge

merge

Comments (0)

Files changed (9)

pyobjc-core/PyObjCTest/test_number_proxy.py

         v = NSNumber.numberWithUnsignedLongLong_(2 ** 63 + 5000)
         self.assertIsInstance(v, long)
 
-        self.assertEqual(v.description(), str(2**63+5000))
+        if os_release() <= '10.5':
+            self.assertEqual(v.description(), str(-2**63+5000))
+        else:
+            self.assertEqual(v.description(), str(2**63+5000))
 
         self.assertIsNot(type(v), long)
 
         data = pickle.dumps(v)
 
         w = pickle.loads(data)
-        self.assertEqual(w, {
-            'long': 2**63 + 5000,
-            'int': 42,
-            'float': 2.0,
-        })
+        if os_release() <= '10.5':
+            self.assertEqual(w, {
+                'long': -2**63 + 5000,
+                'int': 42,
+                'float': 2.0,
+            })
+        else:
+            self.assertEqual(w, {
+                'long': 2**63 + 5000,
+                'int': 42,
+                'float': 2.0,
+            })
 
         for o in v.values():
             self.assertTrue(hasattr(o, '__pyobjc_object__'))

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)

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 */
 }

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 */
 }

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)

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)

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)

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)

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 */
 }
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.