Re: Custom NSView / NSToolbar drawing woes [SOLVED]

2012-11-30 Thread João Varela
Thank you for your reply. It seems as though when you make a thorough explanation in writing of what your problem is then the right solution is found more easily. :) I struggled with this problem for a week and couldn't, for the life of me, find out what the problem was; that is why I posted my pro

Re: Custom NSView / NSToolbar drawing woes

2012-11-29 Thread Graham Cox
When your custom view is activated, it should be made first responder, which is responsible for validating the toolbar - check out NSUserInterfaceValidation. Your -drawRect: does not need to account for the toolbar (but it also should take some care not to mess up the graphics environment, thoug

Custom NSView / NSToolbar drawing woes

2012-11-29 Thread João Varela
I would really appreciate if someone could help me with this mixed bag of problems I'm having while drawing a custom NSView: I have a textured window on which I display either an NSOutlineView or this custom view (both are subviews of the window's content view). This window has a toolbar with seve