[Pyobjc-dev] NSDate, datetime.datetime and Bindings
Brought to you by:
ronaldoussoren
|
From: Orestis M. <or...@or...> - 2008-06-01 20:50:01
|
I have an NSMutableArray that has dict/NSMutableDict entries, and is binding to a table view via an Array Controller. If a column has a date formatter, then datetime.datetime objects cannot be used. I get: Cocoa Bindings: Cannot create date from object datetime.datetime(2008, 6, 1, 21, 40, 43, 131070) of class OC_PythonObject a = NSMutableArray.alloc().init() a.append(dict(date=datetime.today())) a.append(dict(date=NSDate.date())) The first doesn't work, the second does. I can see that there is a proxy for dates in objc/Modules, but perhaps it's not included in the Leopard distribution? Is there an ETA for an updated version of pyobjc? -- Orestis Markou or...@or... http://orestis.gr/ |