Re: [Pyobjc-dev] threading
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2005-04-04 21:31:43
|
On Apr 4, 2005, at 14:00, Brian Granger wrote: > This discussion brings up a question about documentation. Is there > documentation about the general topic of how python types get > mapped/cast to Objective-C types and vice-versa. > > I have been assuming that basic types (numbers, strings, dictionaries, > arrays) cross the bridge in a sensible manner and are cast in sensible > ways when needed. But, I know this way of approaching it is probably > dangerous. So, how does it work in general? Everything that changes goes in here (best place to look for information, it might not be written elsewhere): http://svn.red-bean.com/pyobjc/trunk/pyobjc/NEWS.html This covers how Python objects are wrapped across the bridge pretty well: http://svn.red-bean.com/pyobjc/trunk/pyobjc/Doc/classes.html This covers some of the quirks you may run into with some AppKit/Foundation classes (though this may be somewhat out of date): http://svn.red-bean.com/pyobjc/trunk/pyobjc/Doc/api-notes-macosx.html All the convenience methods added to Objective-C classes to make them pythonic are in here: http://svn.red-bean.com/pyobjc/trunk/pyobjc/Lib/objc/_convenience.py This has a few other translations between objects/structures (right now just FSRef, used to be more): http://svn.red-bean.com/pyobjc/trunk/pyobjc/Lib/objc/_bridges.py The NSNumber -> Python bridge could be done in _bridges, but it's done separately for performance? http://svn.red-bean.com/pyobjc/trunk/pyobjc/Lib/objc/_pythonify.py -bob |