Re: [Pyobjc-dev] NSDate, datetime.datetime and Bindings
Brought to you by:
ronaldoussoren
|
From: Ronald O. <ron...@ma...> - 2008-06-02 05:42:10
|
On 1 Jun, 2008, at 22:50, Orestis Markou wrote: > 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? That's right. I added that after Leopard was released. > > > Is there an ETA for an updated version of pyobjc? Somewhere before 2100 CE? That is, no there is no ETA. I'm working on PyObjC in my spare time and don't have much of that at the moment. Ronald |