• 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: Keeping from Window from Becoming Main
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keeping from Window from Becoming Main


  • Subject: Re: Keeping from Window from Becoming Main
  • From: Charles Jolley <email@hidden>
  • Date: Wed, 26 Jun 2002 18:04:10 -0500

Thanks, Douglas! That did the trick.

-C

On Wednesday, June 26, 2002, at 05:34 PM, Douglas Davidson wrote:

On Wednesday, June 26, 2002, at 03:03 PM, Charles Jolley wrote:

The only problem with canBecomeMain* and canBecomeKey* window methods is that making those work correctly would require a subclass. I know this is not necessary since, for example, NSTextView exhibits the correct behavior when dragging text. If you click and hold on some selected text in an NSTextView in a window that is not key, the window will not be come key until it starting changing the selection. If you wait long enough to it to start a drag instead, then the window will never become key.

Take a look at the documentation for shouldDelayWindowOrderingForEvent:. (I don't remember if you said you had implemented acceptsFirstMouse: or not, but you may need that as well.)

Douglas Davidson
_______________________________________________
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.
_______________________________________________
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: 
 >Re: Keeping from Window from Becoming Main (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Keeping from Window from Becoming Main
  • Next by Date: Re: Quartz blitter/hardware support?
  • Previous by thread: Re: Keeping from Window from Becoming Main
  • Next by thread: NSPoint and NSRect
  • Index(es):
    • Date
    • Thread