Commits

Author Commit Message Labels Comments Date
Bob Ippolito
consistently use tabs use fileSystemRepresentation instead of cString pass the full path to PyRun_SimpleFile instead of just the last component
Branches
pyobjc-ancient
Ronald Oussoren
* Enable PYOBJC_NEW_INITIALIZER_PATTERN code, it's much better then the alternative * Remove some #if-def-ed code * Reintroduce PyMem_Malloc and friends, except in places where that would not be safe * Fix some minor memory management bugs * Remove a speed-hack in class-list.m
Branches
pyobjc-ancient
Ronald Oussoren
update commenting style, and remove compiler warning
Branches
pyobjc-ancient
Ronald Oussoren
updates for working with MallocGuard
Branches
pyobjc-ancient
Ronald Oussoren
whitespace changes, remove unused OC_PythonString implementation
Branches
pyobjc-ancient
Ronald Oussoren
compile on GNUstep
Branches
pyobjc-ancient
Ronald Oussoren
Compile on Jaguar
Branches
pyobjc-ancient
Ronald Oussoren
Try to import all supported frameworks
Branches
pyobjc-ancient
Ronald Oussoren
Avoid false positives on Jaguar
Branches
pyobjc-ancient
Ronald Oussoren
Documentation updates
Branches
pyobjc-ancient
Ronald Oussoren
Add a document-based application template, based on the plain application template and TinyTinyEdit.
Branches
pyobjc-ancient
Bob Ippolito
removed some abort() hooks I accidentally committed
Branches
pyobjc-ancient
Bob Ippolito
Finished implementation of PYOBJC_NEW_INITIALIZER_PATTERN C API changes: - API Version is now 8 - Added PyObjCObject_IsUninitialized - Removed PyObjCSelector_IsInitializer - Renamed PyObjCObject_Flags to PyObjCObject_GetFlags Python API changes: - isInitializer and returnsSelf no longer available from selector or imp
Branches
pyobjc-ancient
Ronald Oussoren
Recreate HTML docs
Branches
pyobjc-ancient
Ronald Oussoren
the objc_object field of an PyObjCObject may be nil, make sure the getattro and setattro methods don't crash when this happens. ReSTEdit still doesn't work, but at least we get a nice python exception :-) BTW. This patch is needed even when we enable PYOBJC_NEW_INITIALIZER_PATTERN
Branches
pyobjc-ancient
Ronald Oussoren
The implementation of -valueForKey: for NSArray on Mac OS X does not call -valueForKey: on the objects in the array. Add a unittest that confirms this, will be used later to avoid false positives in the actual PyObjC unittests.
Branches
pyobjc-ancient
Bob Ippolito
Contrive a bizarre really hard to debug situation that works with the new initializer pattern but not the old. p.s. Ronald, turn on -O0 before even trying to track it down .. ;)
Branches
pyobjc-ancient
Ronald Oussoren
Disable PYOBJC_NEW_INITIALIZER_PATTERN, (1) it is too close to a release to make functional changes and (2) I'm not sure this is a good idea.
Branches
pyobjc-ancient
Ronald Oussoren
Silence a compiler warning
Branches
pyobjc-ancient
Bob Ippolito
len variable was getting clobbered by protocols loop
Branches
pyobjc-ancient
Bob Ippolito
Ignore "returnsSelf" and "isInitializer" when PYOBJC_NEW_INITIALIZATION_PATTERN is defined. This makes PyObjC use the canonical designated initializer pattern, namely, anything called after alloc should be considered the designated initializer. Pros: - It makes PyObjC behave more like ObjC. - Correct code no longer crashes or requires selector wrappers. Cons: - Code that does not initialize properly is probably going to crash, where it was previously throwing a warning and leaking some memory.
Branches
pyobjc-ancient
Ronald Oussoren
- Change all calls to PyMem_ to regular C memory allocation calls. Note that most memory allocation could by done using PyMem_, I just don't feel like checking which are not safe at the moment. Without this change I cannot use a --with-pydebug build of python. - Fix errors found by a --with-pydebug build of python. The reason I wanted a --with-pydebug build in the first place is that PyObjC crashes on Jaguar (when running the unittests, both Py2.3 and Py…
Branches
pyobjc-ancient
Donovan Preston
Adding __error__.sh from PyBootstrap (previously known as PyMacApp) Removing the 'Development' style, since Zero-Link isn't really useful for PyObjC development, and causes applications built with the project template to be somewhat broken. The default build style is now 'Deployment'.
Branches
pyobjc-ancient
Ronald Oussoren
False alarm... The new test-structs contain hosts and are affected by the bug in NSInvocation (see Modules/objc/unittests.m), disable invocation tests for those structs until NSInvocation is fixed.
Branches
pyobjc-ancient
Ronald Oussoren
- bob noticed a problem with libffi. - this patch introduces tests using struct { char; long long; } and struct {char; double; }. These tests fail, although we can correct create and extract such structs (Modules/objc/unittest.m doesn't fail). - this points to a problem with libffi or our interfacing code to libffi. - note that this is a mostly theorical problem, Apple never uses structs like this.
Branches
pyobjc-ancient
Ronald Oussoren
Create a wrapper of the right type when the initial reference to a Cocoa object is an observed object. We do this by using -class when looking for the class of a to-be-wrapped Objective-C object. This solves: - create an object in Objective-C - observe that object (in ObjC) - pass the object to Python without this patch the wrapper would have type NSObserving_Foo instead of Foo.
Branches
pyobjc-ancient
Ronald Oussoren
Make sure the tool works with SimpleXMLRPCServer (who has an methodSignature implementation that returns "not implemented" instead of the actual signature).
Branches
pyobjc-ancient
Ronald Oussoren
- Run a spell-checker - Replace subclass-objective-c.py by a doctest - Remove using-nscoder.py, it is a lame example and was actually only used as a test.
Branches
pyobjc-ancient
Bob Ippolito
Real documentation BTW - Debugging lets you trap *ANY* exception, handled or not. This is important because AppKit/Foundation are going to "handle" most everything.
Branches
pyobjc-ancient
Bob Ippolito
bugfix, KVC accessor removeObjectFrom%sAtIndex_ takes 2 args, not 3.
Branches
pyobjc-ancient
  1. Prev
  2. Next