• 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 17:03:43 -0500

Hi Matt:

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.

I know there is some way to do this, but the docs do not seem to be forthcoming.

Thanks for the suggestion!

Cheers,
-Charles

On Wednesday, June 26, 2002, at 04:47 PM, Matt Neuburg wrote:

On Wed, 26 Jun 2002 13:09:21 -0500, Charles Jolley <email@hidden> said:


I am trying to keep a window from being brought to the front when a
mouse down is received in my view. I want normal behavior for clicks
anywhere else in the window. I have overrided acceptsMouseDown: to
return YES for my view and I do not invoke the superclass method for
mouseDown:, mouseDragged:, or mouseUp:. Still, any mouse down down in
my view immediately brings the window to the front.

Would NSWindow, especially stuff like canBecomeKeyWindow and
canBecomeMainWindow, be useful here? m.
--

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
"You can lead a horse to water but you can't make him read the manual."
_______________________________________________
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.

  • Follow-Ups:
    • Re: Keeping from Window from Becoming Main
      • From: Douglas Davidson <email@hidden>
References: 
 >Re: Keeping from Window from Becoming Main (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Storing generic objects as plists
  • Next by Date: Re: valueForKey:@"class"
  • Previous by thread: Re: Keeping from Window from Becoming Main
  • Next by thread: Re: Keeping from Window from Becoming Main
  • Index(es):
    • Date
    • Thread