Simon Fell > Its just code > AddTrackingRect

Monday, November 13, 2006

From the CocoaDev on AddTrackingRect - Now the important cleanup method. If you forget to remove tracking tags before the view is removed from its window, NSApp could send events to this view after it has been deallocated. The source of this type of bug is hard to find. The stack trace will only show that NSApp is trying to send an event, with no reference to the the view the event is trying to send the event to, because the view has been deallocated.. Yeah, been there done that, where can i get a t-shirt ? Anyway CocoaDev is proving to be invaluable.