• 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: NSWindow ignore mouse clicks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindow ignore mouse clicks


  • Subject: Re: NSWindow ignore mouse clicks
  • From: Peter Maurer <email@hidden>
  • Date: Thu, 14 Oct 2004 10:31:09 +0200

How do I get a window's titlebar to ignore mouseclicks?

For my purposes, its okay that this window can be moved with the title bar, but I want to prevent it from becoming the frontmost window. Even by returning NO from canBecomeMainWindow and canBecomeKeyWindow, the window is still brought to the front when the title bar is clicked.

I'm just guessing, but have you tried something like this...

- (void)orderFront: (id)sender {
// don't do anything here and don't call super
}

... in your NSWindow subclass?

Peter.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >NSWindow ignore mouse clicks (From: Dominic Feira <email@hidden>)

  • Prev by Date: NSView that follows the tracking of a NSScrollView
  • Next by Date: Re: NSWindow ignore mouse clicks
  • Previous by thread: NSWindow ignore mouse clicks
  • Next by thread: Re: NSWindow ignore mouse clicks
  • Index(es):
    • Date
    • Thread