[Pythonmac-SIG] Problems with Notifications in PyObjC
chairos at gmail.com
Sat Jul 30 05:47:53 CEST 2005
Most of it involved me forgetting to watch Console.app for errors in
my code. One of my more common problems is forgetting to add self to
the argument list for class methods, and that's one of the problems
that happened. I didn't know, though, that exceptions often get
dropped in notification calls... Maybe that should be in PyObjC docs?
I had to get told by someone on #macpython.
On 7/29/05, Dethe Elza <delza at livingcode.org> wrote:
> What was the real problem?
> On 29-Jul-05, at 2:07 PM, Jon Rosebaugh wrote:
> > Um, ignore this. Boy, do I feel stupid now.
> > On 7/29/05, Jon Rosebaugh <chairos at gmail.com> wrote:
> >> I hope this is an acceptable place for PyObjC problems...
> >> Anyhow, I have a small project I'm working on (zip available at
> >> http://li5-50.members.linode.com/~jon/NoteDB/NoteDB.zip), and
> >> notifications aren't working out for me. I think. I have a delegate
> >> for a NSTableView, and my tableViewSelectionDidChange_ method isn't
> >> being called, while other delegate methods are.
> >> I also have tried to subclass NSTableView, in accordance with the
> >> directions here (http://borkware.com/quickies/one?topic=NSTableView),
> >> but that subclass isn't receiving the textDidEndEditing_ notification
> >> either. Since the only things these have in common is that they are
> >> notifications, the only idea I have is that I'm neglecting something
> >> crucial for notifications, but the PyObjC docs don't indicate that I
> >> need to do anything special.
> >> Thanks in advance for any help.
> >> --
> >> Bloggity: http://blog.inklesspen.com/
> > --
> > Bloggity: http://blog.inklesspen.com/
> > _______________________________________________
> > Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> > http://mail.python.org/mailman/listinfo/pythonmac-sig
> We are, after all, the junk tribe and we like to make junk. If we
> don't make more junk each year we call it a recession. --Rich Gold
More information about the Pythonmac-SIG