NSDrawer FirstResponder problem
NSDrawer FirstResponder problem
- Subject: NSDrawer FirstResponder problem
- From: David Piasecki <email@hidden>
- Date: Fri, 2 Dec 2005 11:32:16 -0800
I have an NSImageView which I want to be the "FirstResponder" no
matter what NSPanel I launch on top. This way the NSImageView can
continue to receive mouseMoved events. I can do that just fine by
calling
[[myPanel window] makeFirstResponder:myImageView]
However, when I add an NSDrawer to myPanel with an NSTableView inside
the NSDrawer, everything works fine until I click on an item in the
NSTableView. After that, myImageView no longer ceases to receive
mouseMoved events.
I tried setting the drawer's contentView, the NSTableView and its
corresponding NSScrollView to also use myImageView as their
firstResponder
[[theDrawerContentView] window] makeFirstResponder:myImageView]
[[myTableView window] makeFirstResponder:myImageView]
[[myTableScrollView window] makeFirstResponder:myImageView]
But no such luck. Any help would be much appreciated!
Thanks,
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden