> On 29 Oct 2014, at 16:16, Steve Mills <sjmi...@mac.com> wrote:
> 
> On Oct 29, 2014, at 11:05:42, Jonathan Mitchell <jonat...@mugginsoft.com> 
> wrote:
> 
>> I created a sample project with a single NSWindow and content view subclass 
>> like so:
>> @implementation TestView
>> 
>> - (void)mouseDown:(NSEvent *)theEvent
>> {
>>   NSLog(@"Mouse down");
>> }
>> 
>> /*
>> - (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
>> {
>>   return YES;
>> } */
>> 
>> @end
>> 
>> It seems to behave as the docs suggest on OS X 10.9.
>> Perhaps your app has some additional event handling in place.
> 
> I tried that as well, but returned NO from acceptsFirstMouse:. It still came 
> forward and clicked subviews when I clicked them in the background. Did you 
> add subviews inside your subclass view and try clicking those while your app 
> was in the background?
Yes. Works as docs suggest on 10.9 and 10.10.

> My app doesn't have any special event handling. I might try overriding 
> sendEvent:, but that just seems so brute-force when there should be a way to 
> tell the window to just come forward and ignore clicks like all windows used 
> to do.
> 
Does sound like overkill. I would put together a trivial test project and work 
back from there.

J


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to