• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Make NSWindow immovable by dragging bottom bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Make NSWindow immovable by dragging bottom bar (From: PCWiz <email@hidden>)
 >Re: Make NSWindow immovable by dragging bottom bar (From: Nick Zitzmann <email@hidden>)
 >Re: Make NSWindow immovable by dragging bottom bar (From: PCWiz <email@hidden>)
 >Re: Make NSWindow immovable by dragging bottom bar (From: Nick Zitzmann <email@hidden>)
 >Re: Make NSWindow immovable by dragging bottom bar (From: PCWiz <email@hidden>)
 >Re: Make NSWindow immovable by dragging bottom bar (From: Nick Zitzmann <email@hidden>)
 >Re: Make NSWindow immovable by dragging bottom bar (From: PCWiz <email@hidden>)
 >Re: Make NSWindow immovable by dragging bottom bar (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Make NSWindow immovable by dragging bottom bar
  • Next by Date: Re: NSBezierPath linewidth not correct
  • Previous by thread: Re: Make NSWindow immovable by dragging bottom bar
  • Next by thread: Re: Saving position in NSTextView
  • Index(es):
    • Date
    • Thread