Re: [Pythonmac-SIG] lists and accessors

2010-07-16 Thread Georg Seifert
Hi Ronald, This works wonderfully. Many Thanks. Georg > > On 11 Jul, 2010, at 1:18, Georg Seifert wrote: > >> Hi Ronald, >> >> Thanks for your response. >> >> I did tried this: >> >> class PathNodesProxy (object): >> def __init__(self, owner): >> self.

Re: [Pythonmac-SIG] lists and accessors

2010-07-13 Thread Ronald Oussoren
On 11 Jul, 2010, at 1:18, Georg Seifert wrote: > Hi Ronald, > > Thanks for your response. > > I did tried this: > > class PathNodesProxy (object): > def __init__(self, owner): > self._ower = owner > def __getitem__(self, i): >

Re: [Pythonmac-SIG] lists and accessors

2010-07-10 Thread Georg Seifert
Hi Ronald, Thanks for your response. I did tried this: class PathNodesProxy (object): def __init__(self, owner): self._ower = owner def __getitem__(self, i): print "__getitem__", i ret

Re: [Pythonmac-SIG] lists and accessors

2010-07-08 Thread Ronald Oussoren
On 8 Jul, 2010, at 23:00, Georg Seifert wrote: > Hi, > > In my app I will access my cocoa data classes from a python script (run from > within the app). This works fine, I can access all the methods and > properties. For some of the array properties I use dedicated getter and > setter (getIte

[Pythonmac-SIG] lists and accessors

2010-07-08 Thread Georg Seifert
Hi, In my app I will access my cocoa data classes from a python script (run from within the app). This works fine, I can access all the methods and properties. For some of the array properties I use dedicated getter and setter (getItemAtIndex: , setItemAtIndex: ...). I have a cocoa object: @i