[Pyobjc-dev] status of enumerators?
Brought to you by:
ronaldoussoren
From: <bo...@pa...> - 2003-02-27 17:27:50
|
i found this message in the list archives. does anyone know if enumerators are working yet (they don't seem to be)? thanks, bob > I had thought enumerators should "just work" in PyObjC? I should be > able to do... > > for x in array.objectEnumerator(): > print x > > ... and it'll just work. Oh, wait, that's 'for x in array:'. > > We need to be able to do 'for x in anObject.objectEnumerator():', as > well. > > Specifically, for table view: > > for x in aTableView.rowEnumerator(): > ... manipulate x ... > > rowEnumerator() returns an enumerator that enumerates the selected row > indices. Very handy. > > (Trivial change in the bridge, I have zero time to do it now... I'll > get to this sometime soon unless someone [hopefully] beats me to it. > :-) > > b.bum |