• 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
NSDrawer FirstResponder problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: [OT] What happened to Stepstone?
  • Next by Date: Re: NSCell subclassing to contain other NSCells
  • Previous by thread: Disabling URL caching
  • Next by thread: Binding: NSArrayController is loaded but doesn't display data in table
  • Index(es):
    • Date
    • Thread