Re: [Pyobjc-dev] PyObjC and DBApi2
Brought to you by:
ronaldoussoren
From: Dirk S. <dir...@me...> - 2009-08-10 12:36:22
|
Hi Marco, A Python list is the equivalent of an NSMutableArray, so you can e.g. call setContent on an arrayController with the result of your query, you can then bind the table to the arrayController. Also take a look at SQLObject, SQLAlchemy and Twisted for more sophisticated ways to interact with an SQL database. Cheers, - Dirk --- Sent from my iPhone On Aug 10, 2009, at 12:13 PM, Alexander Mail <ale...@gm...> wrote: > Hi, > I'm new in PyObjC/Cocoa programming. I read a lot of > documentation. But now I have this problem: > I'm developing an application that gets data form a > Posgtres database. To connect to PG I used PsycoPg2. > But I don't understand how to manage the result of PG > (lists) with the cocoa bindings. My goal is to show > the get data in a NSTableView. > There is some documentations? > > Thank a lot. > > Marco > --- > --- > --- > --------------------------------------------------------------------- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |