On May 31, 2006, at 6:14 AM, Bill Cheeseman wrote:
I'm not sure I understand what you're saying, but I think you may
I've now gotten part way to my goal by using IB to set my drawer's
view as initial first responder. Some old posts to the list
it might be necessary to do this in my window controller's -
but doing it in IB works seems to work. My NSScrollView subclass is
recognized, and now its override of -acceptsFirstMouse: is called
click on the table with my app frontmost.
However, -acceptsFirstMouse: is called AFTER -
AFTER my -selectRow action method. I haven't thought through the
implications of that yet. Maybe all it means is that -
acts as a veto authority after the selection is attempted.
But it still doesn't work when my app is in the background and I
Command-click on the table. I suspect that I also have to subclass
NSClipView and override its -acceptsFirstMouse: to return YES. I
able to try that until tonight.
Hmmm, are you targeting Tiger-only, or Panther also? There are
[still?] bugs in NSDrawer (and its private subclasses) which prevent
proper handling of the responder chain. I came up with workarounds
which might be of use to you, but you'd have to be willing to add a
few categories and/or pose some private classes. FWIW, my app uses a
tableview in a drawer and all controls in the drawer now work "like
they should", without any special treatment.
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