• 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: "greedy" NSOpenGLViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "greedy" NSOpenGLViews


  • Subject: Re: "greedy" NSOpenGLViews
  • From: Brent Gulanowski <email@hidden>
  • Date: Mon, 7 Oct 2002 22:59:17 -0400

On Monday, October 7, 2002, at 06:30 PM, Mark Levin wrote:

I have a number of windows which contain subclasses of NSOpenGLView, each of which accepts first mouse and first responder. The thing is, they don't seem to like to *give up* first responder, and will "steal" mouse events from each other (one view will respond to events in the other while it is in the background, and reordering the windows usually doesn't fix this). Anyone have any idea what's wrong?

This implies that your other views are requesting first responder status and are not getting it. (Actually I have had something like that happen, but not anymore. It might have gone away with Jaguar. And it was a single NSOpenGLView subclass in a single window.)

So, question: does bringing a window to front in the same application automatically give that window first crack at events? That would happen if the prior first responder refused to resign. Docs don't say that is happening. Default implementation returns "YES".

First responder for action messages seems to change with the key window change, but not for events. Does your NSOpenGLView subclass request to be notified when its window becomes key? If not, I think you will have to do that, so that they can ask for first responder status.
--
Brent Gulanowski email@hidden

Pluto Neptune Uranus Saturn Jupiter Mars Earth Venus Mercury Sun
. o o o O . . . . /\
^ \/
You are here _|
_______________________________________________
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: 
 >"greedy" NSOpenGLViews (From: Mark Levin <email@hidden>)

  • Prev by Date: Re: Embarrassing NSURL problem
  • Next by Date: Document-style drawing code
  • Previous by thread: "greedy" NSOpenGLViews
  • Next by thread: Re: Using a framework like a bundle
  • Index(es):
    • Date
    • Thread