the first mouseDown message of NSWindow

2011-12-14 Thread Torsten Curdt
I have a custom window that where I receive mouseDown messages. Now the first mouseDown is always lost because it just activates the window. Here is the relevant code: https://gist.github.com/0b3b010ad675a349ce72 So I was digging through the docs but I don't see a way around this.

Re: the first mouseDown message of NSWindow

2011-12-14 Thread MeldaProduction
I'm no expert here, but I think I had the opposite problem - I have a single custom NSView and it was really hard to get rid of the first mouse down message sometimes :). Maybe try the views. Vojtech 2011/12/14 Torsten Curdt tcu...@vafer.org I have a custom window that where I receive

Re: the first mouseDown message of NSWindow

2011-12-14 Thread Graham Cox
On 15/12/2011, at 9:13 AM, Torsten Curdt wrote: So I was digging through the docs but I don't see a way around this. [NSView acceptsFirstMouse:] --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: the first mouseDown message of NSWindow

2011-12-14 Thread Conrad Shultz
On 12/14/11 2:13 PM, Torsten Curdt wrote: I have a custom window that where I receive mouseDown messages. Now the first mouseDown is always lost because it just activates the window. Here is the relevant code: https://gist.github.com/0b3b010ad675a349ce72 So I was digging through the

Re: the first mouseDown message of NSWindow

2011-12-14 Thread Torsten Curdt
Awesome! Thanks guys. Now I do indeed get the event when I click on the content view. One problem still remains though - the subview of the content view is covering big portions of the content view. When I click on the subview I don't get the first mouseDown. Neither in the content view nor in

Re: the first mouseDown message of NSWindow

2011-12-14 Thread Graham Cox
On 15/12/2011, at 9:13 AM, Torsten Curdt wrote: I have a custom window that where I receive mouseDown messages. You probably don't want to do that. A custom window is OK if your window needs a custom appearance, but any meaningful content (and event handling) should be done by a view placed

Re: the first mouseDown message of NSWindow

2011-12-14 Thread Conrad Shultz
On 12/14/11 3:39 PM, Torsten Curdt wrote: Awesome! Thanks guys. Now I do indeed get the event when I click on the content view. One problem still remains though - the subview of the content view is covering big portions of the content view. When I click on the subview I don't get the first

Re: the first mouseDown message of NSWindow

2011-12-14 Thread Torsten Curdt
Any further suggestions? Works for me as described.  You can download my sample project for comparison at http://dl.dropbox.com/u/5847625/MouseDownTest.zip Thanks for the test project - works fine here, too. Now I need to figure our what's wrong in my (also simple) other project :-/ cheers,