Re: Make NSWindow immovable by dragging bottom bar
Re: Make NSWindow immovable by dragging bottom bar
- Subject: Re: Make NSWindow immovable by dragging bottom bar
- From: Nick Zitzmann <email@hidden>
- Date: Sat, 2 Jan 2010 15:50:12 -0700
On Jan 2, 2010, at 3:45 PM, PCWiz wrote:
> And also I need some clarification on the mouse event eater. Would it just be something like this in the subclass:
>
> - (void)mouseDown:(NSEvent*)theEvent
> {
> // Do nothing
> }
That's correct; you just need to make it so that the default implementation is not called. The default implementation forwards the event down to the next responder. You also might need to override -acceptsFirstResponder to return YES if the mouse-eater is still not getting the events...
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden