Hi, I have created an General/NSButton subclass along with an General/NSButtonCell subclass. I am using this in an General/NSToolbar, however there is 2 problems.
* 2005-03-27 02:18:48.853 General/TestApp[16011] Exception raised during posting of notification. Ignored. exception: Window: discardTrackingRect called before adding rect
2005-03-27 02:18:48.854 General/TestApp[16011] *** Assertion failure in -General/[NSToolbarConfigPanel _discardTrackingRect:], General/AppKit.subproj/General/NSWindow.m:2796 *
I have heard that I need to removed my tracking rects here:
[super viewWillMoveToWindow:newWindow]; }
However I have not created any, the button created them from mousEntered: and mouseExited:.
Any help would be most appreciated.
-Julian
Just pass the message up to super from your subclass implementation
Resolved with use of custom tracking rects.