Thread: [Pyobjc-dev] Docs unhelpful
Brought to you by:
ronaldoussoren
From: Andrew P. <and...@gm...> - 2010-08-14 19:32:13
|
I know ObjC, and I know Python. What I do not know is: * How to convert between NSString and Python string. * How to convert (id) something into an NSString (and then to a Python string). * How to create an NSArray of NSStrings using NSArray.arrayWithObjects and Python strings. * Whether None is an acceptable substitute for ObjC's nil. None of these are found in the PyObjC docs. Instead, I just see which things aren't implemented yet. That's extremely unhelpful. |
From: James R E. <jam...@lr...> - 2010-08-16 07:49:22
|
Hi Andrew, You may find the PyObjC tutorial useful. In particular, this section : http://pyobjc.sourceforge.net/documentation/pyobjc-core/intro.html#accessing-python-objects-from-objective-c You can typically use a python unicode (or str if you absolutely positively know you'll never ever have any non ASCII, but you don't) wherever an NSString is expected. James -- Envoyé de mon mobile / Sent from my mobile Le 14 août 2010 à 21:31, Andrew Pennebaker <and...@gm...> a écrit : > I know ObjC, and I know Python. What I do not know is: > > * How to convert between NSString and Python string. > * How to convert (id) something into an NSString (and then to a Python string). > * How to create an NSArray of NSStrings using NSArray.arrayWithObjects and Python strings. > * Whether None is an acceptable substitute for ObjC's nil. > > None of these are found in the PyObjC docs. Instead, I just see which things aren't implemented yet. That's extremely unhelpful. > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |