• 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: Ricky Sharp <email@hidden>
  • Date: Wed, 14 Jul 2004 20:21:41 -0500

On Jul 14, 2004, at 7:12 PM, Glenn Andreas wrote:

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.

A good suggestion, but alas this doesn't work.

The current solution I'm using is to use the more granular Core Graphics window levels. There is actually three "sub-levels" within the document (normal) window layer. My blanking windows are put on the lowest layer; content window on lowest plus one.

It does cause confusion though with Expose, but I'll leave this alone for now and look at a more robust solution later.

___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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.


References: 
 >Preventing window selection (From: Ricky Sharp <email@hidden>)
 >Re: Preventing window selection (From: Glenn Andreas <email@hidden>)

  • Prev by Date: Unexpected copyWithZone invoked when adding object to NSArrayController
  • Next by Date: Re: Low level system status?
  • Previous by thread: Re: Preventing window selection
  • Next by thread: Dumping input to NSTask
  • Index(es):
    • Date
    • Thread