rightMouseDown not working as documented?

2010-01-22 Thread Murat Konar
I've run into a surprising behavior today in Leopard 10.5.8 (haven't had the opportunity to test it on Snow Leopard yet). I have one view of class "RedView" nested inside another view "OrangeView". Both views are subclasses of NSView. This is the inner view's implementation of rightMouseDo

Re: View Handling

2010-01-22 Thread Murat Konar
On Jan 22, 2010, at 3:23 PM, David Duncan wrote: On Jan 22, 2010, at 1:57 PM, David Blanton wrote: So my question. "What is the 'proper' means of handling this situation?" Rearrange the views to be siblings instead of parent-child in Interface Builder? Further more, use an NSTabView wi

Re: rightMouseDown not working as documented?

2010-01-22 Thread Murat Konar
The descriptions for mouseDown: et. al. (in NSResponder's docs) all say "The default implementation simply passes this message to the next responder." NSControl documents the special behavior of its implementation of mouseDown:. NSView has no mention of any special behavior with regard to

Re: Global in NSApplication

2010-01-26 Thread Murat Konar
Read up on categories. Then make the instance of your Debug class a static variable in your category implementation file, and use a method you added to NSApplication via your category to return it. _murat On Jan 26, 2010, at 6:05 PM, Ba