[Pyobjc-dev] Re: [ pyobjc-Bugs-679748 ] NSMutableString gets converted to Python string
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@co...> - 2003-02-03 20:30:50
|
On Monday, Feb 3, 2003, at 15:26 US/Eastern, SourceForge.net wrote: >> Comment By: Just van Rossum (jvr) > Date: 2003-02-03 21:26 > > Message: > Logged In: YES > user_id=92689 > > How's this: let's _not_ convert any NS{Mutable}String as an > experiment, and see what it breaks in the Examples area and in our own > respective code bases code. We can always go back and do it > differently. This is my next Train Hack(tm) for the ride home this evening. I'm going to implement two things: - an OC_NSString subclass of NSString that can encapsulate a python string an an NSString compatible fashion - a python object that provides a character buffer style interface to the contents of an NSString. The former *should* be easy. The latter will be difficult, but I have experience with the character buffer APIs from doing the NSData/NSBitmapImageRep API support. Thank GOODNESS for unit tests. It is going to be *really* easy to get a feel for what breaks. If anyone has a test rolling around your head that you'd think would be a good thing to support/do, please whip off a test. Just copy one of the test cases that are already in Lib/Foundation/test [has more tests than the other two modules] and modify it for your needs. I don't really care if the test passes or fails-- but, if it fails, make sure it fails because it is demonstrating something you *want* to work. b.bum |