[Pythonmac-SIG] Using UKKQueue with PyObjC
Florian Munz
newsletter at theflow.de
Tue Mar 8 22:59:53 CET 2005
Bob Ippolito <bob at redivi.com> wrote:
> What you need to do here is:
> (a) implement a __del__ that removes it as an observer or otherwise
> ensure that the Controller object is never an observer after it's dead
> (i.e. by making sure it never dies, or removing it manually before it
> goes away).
> (b) make sure it's alive for the duration that you want it to receive
> notifications, by storing away a reference to it somewhere.. if you are
> just testing and you want it to never go away, do self.retain()
Thanks a lot, that solved all my problems and I know a significant bit
more about PyObjC now ;-)
thanks,
Florian
More information about the Pythonmac-SIG
mailing list