Re: Keeping from Window from Becoming Main
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.