Re: [Pyobjc-dev] Looking for python classes that could use a custom proxy class
Brought to you by:
ronaldoussoren
|
From: Barry W. <bar...@gm...> - 2008-01-03 00:33:08
|
+1 for both set/frozenset and datetime.datetime! barry On Jan 1, 2008 4:12 AM, Ronald Oussoren <ron...@ma...> wrote: > Hi, > > I'm currently search for more Python classes that could use custom > PyObjC proxies, just like python's "dict" is proxied as > "OC_PythonDictionary". > > The ones I know of right now are: > > - set, frozenset: proxy using subclass of NS(Mutable)Set > - datetime.datetime, ...: proxy using subclass of NSDate > > There's bound to be more of those, but I haven't looked very carefully > yet. The advantage of custom proxies is > cleaner integration of pure python types in Cocoa code, and hence less > need to "contaminate" code with unnecessary Cocoa dependencies. As an > example, the datetime.datetime proxy would allow you to dump the > output of an SQL query in an NSTable column with a date-formatter > without manual conversions. > > Ronald > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > > |