[Pyobjc-dev] incomplete enumerator support?
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2003-01-13 22:42:13
|
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 |