|
From: | Andreas Höschler |
Subject: | Re: Debugging NSNotificationCenter |
Date: | Wed, 4 Oct 2006 13:12:57 +0200 |
Hoi,
no idea what is going wrong, but my first try would be to start gdb and have a look at the notification directly. If this does not seem like agood idea, I would recommend that you ask the notification for its classand print that instead of the notification itself. If this works and it is the class notification, you could ask the notification for its name and have that printed. My guess is that either the object or the user information of the notification fail to print.
Found the cause! We sent a postNotification: from a subthread to the main thread. The object of the notification was probably already released when the notification reached the main thread. Just another example of (bad) code that runs fine on MacOSX but fails to work under GNUstep. If you want to make sure that your code is free of bugs, try to run it under GNUstep. It won't work until you fixed the last bit. :-)
Thanks! Regards, Andreas
[Prev in Thread] | Current Thread | [Next in Thread] |