• 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: A window that rejects focus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A window that rejects focus


  • Subject: Re: A window that rejects focus
  • From: "Kyle Sluder" <email@hidden>
  • Date: Tue, 19 Feb 2008 20:51:01 -0500

On Feb 19, 2008 8:30 PM, John Stiles <email@hidden> wrote:
>
>  Actually, I'm trying to redo it now to be more sheets-friendly so I don't
> have to do this, and it's coming along better than I expected, but I want a
> backup plan.

I'm sure if you get it working you'll have happier users.  And if you
don't, nobody like me can come along and whine.

>  What do you mean  by "trapping click events"? You mean, subclassing
> NSWindow and overriding every -mouse*: method? That seems pretty
> heavy-handed… and I'm honestly not sure that it would do what I was asking.
> I am not sure that it would keep the window from coming forward.

I was talking about overriding -[NSWindow sendEvent:] and trapping all
mouse events, and, based on the "global" state, either calling super's
implementation if the window should be useable or just shortcutting to
the bit-bucket if it shouldn't.

As for preventing ordering to the front, I'm not sure how the order of
events happens, but it seems like you should be able to override
-[NSWindow orderWindow:relativeTo:] to provide special logic.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: A window that rejects focus
      • From: John Stiles <email@hidden>
References: 
 >A window that rejects focus (From: John Stiles <email@hidden>)
 >Re: A window that rejects focus (From: "Kyle Sluder" <email@hidden>)
 >Re: A window that rejects focus (From: John Stiles <email@hidden>)

  • Prev by Date: Re: Scroll an NSTextView to a new place
  • Next by Date: Re: A window that rejects focus
  • Previous by thread: Re: A window that rejects focus
  • Next by thread: Re: A window that rejects focus
  • Index(es):
    • Date
    • Thread