• 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: Preventing mouse clicks from bringing a window to the front
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preventing mouse clicks from bringing a window to the front


  • Subject: Re: Preventing mouse clicks from bringing a window to the front
  • From: Gregg Witmer <email@hidden>
  • Date: Tue, 22 Feb 2005 13:43:19 -0500

Thanks Evan, Tim and Ricky!

NSWindow's -addChildWindow:ordered looks like it's going to do it for me.

Example: [behindWindow addChildWindow:frontWindow ordered:NSWindowAbove];

I made a subclass of NSWindow that I can set an enabled flag.

Example: [behind setEnabled:NO];

When this flag is FALSE, -canBecomeKeyWindow and -canBecomeMainWindow return NO.

Also when this flag is FALSE, I am finding situations where -sendEvent needs to drop or redirect leftMouseDown events.

I am still ironing out those details but it certainly looks like this was the solution I was looking for.

On the surface, this solution also looks to be Expose' friendly.

Thanks again for the help.

Gregg
_______________________________________________
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


  • Prev by Date: Re: Dimensions of a movie?
  • Next by Date: Custom radio button failure with bindings
  • Previous by thread: Re: Preventing mouse clicks from bringing a window to the front
  • Next by thread: Window Movement Animations ???
  • Index(es):
    • Date
    • Thread