Source

pygame / src / sdlmain_osx.m

Diff from to

File src/sdlmain_osx.m

 
 static PyObject*
 _ScrapGetTypes(PyObject *self) {
+#if defined (PYGAME_MAC_SCRAP_OLD)
+	return Py_None;
+#else
 	PyObject *l = PyList_New(0);
 	NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
 	NSPasteboard *pb = [NSPasteboard generalPasteboard];
 		PyList_Append(l, PyUnicode_FromString([type UTF8String]));
 	[pool release];
 	return l;
+#endif
 }
 
 static PyObject*
 _ScrapPut(PyObject *self, PyObject *args) {
+#if defined (PYGAME_MAC_SCRAP_OLD)
+	return Py_None;
+#else
 	PyObject *ret = NULL;
 	char *scrap_type;
 	char *data;
 	[pb setString:ndata forType: NSStringPboardType];
 	[pool release];
 	return Py_None;
+#endif
 }
 
 static PyObject*
 _ScrapSetMode(PyObject *self, PyObject *args) {
+#if defined (PYGAME_MAC_SCRAP_OLD)
+	return Py_None;
+#else
 	char *mode;
 	if (!PyArg_ParseTuple (args, "s", &mode))
 		return Py_None;
 	return Py_None;
+#endif
 }
 
 static PyObject*
 _ScrapContains(PyObject *self, PyObject *args) {
+#if defined (PYGAME_MAC_SCRAP_OLD)
+	return Py_None;
+#else
 	char *mode;
 	int found = 0;
 	if (!PyArg_ParseTuple (args, "s", &mode))
 	[pool release];
 
 	return found ? Py_True : Py_False;
+#endif
 }
 
 static PyObject*
 _ScrapLost(PyObject *self) {
+#if defined (PYGAME_MAC_SCRAP_OLD)
+	return Py_None;
+#else
 	int found = 0;
 	NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
 	NSArray *supportedTypes =
 	[pool release];
 
 	return found ? Py_False : Py_True;
+#endif
 }
 
 static PyMethodDef macosx_builtins[] =