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: PCWiz <email@hidden>
- Date: Sat, 2 Jan 2010 16:19:49 -0700
I just found an amazingly simple solution to this. Snow Leopard publicized a previously private API method, NSWindow's setMovable. All I did was [window setMovable:NO]; and it works !
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2010-01-02, at 3:50 PM, Nick Zitzmann wrote:
>
> 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