Commits

Show all
Author Commit Message Labels Comments Date
Ronald Oussoren
My own version of Leopard's metadata scanning tools. This is mostly for historical interest, I've used these tools to shape my thoughts about the bridgesupport tools and provide feedback to the bridgesupport tools. I am planning further development though, mostly to experiment with solutions to problems I'm finding in the metadata system. The most important of which are dealing with the C++ type bool (cannot be represented in metadata at the moment…
Branches
pyobjc2
Ronald Oussoren
Don't create new classes in the ObjC runtime for the Python classes that represent CoreFoundation types. This should make it easier to have PyObjC and RubyCocoa in a single application.
Branches
pyobjc2
Ronald Oussoren
Add testcases for overriding +instancesRespondToSelector and -respondsToSelector
Branches
pyobjc2
Ronald Oussoren
CF proxy classes shouldn't be registered with the ObjC runtime, they are an internal detail of PyObjC. This only updates the testsuite, actual fix will follow later.
Branches
pyobjc2
Ronald Oussoren
- fix buglet in closure_pool.m - ensure that the code now actually compiles on ppc64, still untested.
Branches
pyobjc2
Ronald Oussoren
With this checking PyObjC passes all unittests on x86_64. I haven't actually tried running real code, but this should mean it is now possible to build 64-bit GUI Python applications on Leopard, at least on Intel macs. I've good hopes for PPC G5 systems as well, but cannot test those due to lack of access to an appropriate system.
Branches
pyobjc2
Ronald Oussoren
1) Allocate all closures using PyObjC_malloc_closure. We now no longer get crashes during the unittests 2) Disable tests for poseAs: on 64-bit systems, as posing is not supported at all there. 3) Make PyObjC_malloc_closure less wastefull with memory (that is store more than one closure per VM page) There are still some test failures on 64-bit builds, but we're almost there. The resulting test failures are related and probably all just one real iss…
Branches
pyobjc2
Ronald Oussoren
- Add unittests for objc.object_lock - Make sure that objc.object_lock actually works
Branches
pyobjc2
Ronald Oussoren
BUGFIX: it is now possible to override respondsToSelector: in Python TODO: unittests and backport to the bugfix branch.
Branches
pyobjc2
Ronald Oussoren
Another step closer to having a functional 64-bit build. This version of PyObjC runs most of the unittests, but there are test failures and crashes as well. closure_pool.m is too simple right now, it should use a pool of closures to avoid memory fragmentation. Furthermore one closure per page of memory is overkill.
Branches
pyobjc2
Ronald Oussoren
copy/paste error
Branches
pyobjc2
Ronald Oussoren
This is a tentative workaround for a problem I ran into while debugging a threading problem. When a pure python "daemon" thread uses performSelectorOnMainThread:... and to call a method on the main thread and the called method raises an exception we might end up in the situation where we want to use the PyGILState API's when the machinery for that has shut down (issue 1402 in python's bugtracker). This causes a hard crash (abort() is called by the Python core). By calling objc.recycleAut…
Branches
pyobjc2
Ronald Oussoren
Version string update
Branches
pyobjc2
Ronald Oussoren
With this patch it is possible to acquire the mutex for an object using a context manager:: with objc.object_lock(anObject): print "Mutex for anObject held here" NOTE: the naming is sligtly different from the pure python code that was posted on the list. NOTE2: unittests are conspicuously absent for now.
Branches
pyobjc2
Ronald Oussoren
Fix a bug with "magic cookie" objects: you'd get a crash when trying to get the repr of them.
Branches
pyobjc2
Ronald Oussoren
Import of the versions of PyObjC and PyOpenGL that ship in OSX 10.5.0.
Tags
import-pyobjc-in-macosx-10.5
Branches
pyobjc2
  1. Prev
  2. Next