Re: [Pyobjc-dev] NSTableView, array controller, KVO problem?
Brought to you by:
ronaldoussoren
From: Jeff B. <jb...@pl...> - 2005-10-31 19:39:10
|
On Oct 31, 2005, at 11:52 AM, Ronald Oussoren wrote: > > It's probably the list that is causing your problems, we don't (and > cannot) provide KVO for native python lists. Could you use an > NSMutableArray instead? You should be able to use the same API as > with a Python list to modify it (e.g. self.model.append(nextItem)). > > Adding KVO support for native (pure python) objects would require > patching the interpreter itself, as we'd have to detect calls to > functions that modify objects without going through the usual > machinery. Aha! Thanks for the speedy and informative response --- I had assumed through an overly-optimistic interpretation of the various release notes and so forth that I could use Python native lists in that fashion. I can certainly use an NSMutableArray instead. jb |