Re: [Pyobjc-dev] CVS Build: CFObj_New, CFObj_Convert
Brought to you by:
ronaldoussoren
From: Mitch C. <mit...@ea...> - 2003-05-31 13:21:08
|
On Friday, May 30, 2003, at 11:57 PM, Ronald Oussoren wrote: > On Saturday, May 31, 2003, at 06:21 Europe/Amsterdam, Mitch Chapman > wrote: >> ld: Undefined symbols: >> _CFObj_Convert >> _CFObj_New > > These functions are used to improve the integration between PyObjC and > MacPython. Jack Jansen introduced these functions very recently in > Python (a couple of days ago). The #if guard around them tests for > Python >= 2.3b1 because I wanted to test these functions, the test > should be for >= 2.3b2. I've checked in a patch. Works like a champ! The behavior was just what I expected, too: I created a test app containing an NSTableView, told the NSTableView that File's Owner (MyDocument) was its dataSource and ran. Result: A warning message about the methods which the dataSource must implement. I added definitions for those methods, didn't bother to declare MyDocument a subclass of NSTableDataSource, and ran again. Result: No warnings, just a properly functioning app. I didn't even have to hunt through the Cocoa docs or the PyObjC sources for names of relevant informal protocols. In short, this is a /really/ nice improvement. Thank you. -- Mitch |