• 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 window selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preventing window selection


  • Subject: Re: Preventing window selection
  • From: Glenn Andreas <email@hidden>
  • Date: Wed, 14 Jul 2004 19:12:45 -0500

At 6:15 PM -0500 7/14/04, Ricky Sharp wrote:
In the Cocoa version, I have a derived NSWindow class to manage my blanking windows. I provided overrides to canBecomeKeyWindow: and canBecomeMainWindow: (both return NO), but they still allow the window to be selected and moved to the front. To get past this hurdle for now, I simply put the content window in the floating window layer.

I've never tried this, but I'd suggest, in your NSWindow class, override -orderFront:, -orderFrontRegardless, -makeKeyAndOrderFront, to all just call orderBack instead.

So anything that tries to bring it to the front (via whatever mechanism) just results in sending it to the back of it's layer.

Don't know how well this would play with Expose, but it's worth a shot...


--
Glenn Andreas email@hidden mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Preventing window selection
      • From: Ricky Sharp <email@hidden>
References: 
 >Preventing window selection (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: Dumping input to NSTask
  • Next by Date: Re: NSTable Newbie Issues
  • Previous by thread: Preventing window selection
  • Next by thread: Re: Preventing window selection
  • Index(es):
    • Date
    • Thread