Re: NSComboBoxCell in NSTableView
Re: NSComboBoxCell in NSTableView
- Subject: Re: NSComboBoxCell in NSTableView
- From: Michael Becker <email@hidden>
- Date: Sat, 6 Dec 2003 22:30:29 +0100
I am using NSComboBoxCell in NSTableView in my application, and I
don't see the problems you are mentioning. Here is what I did in the
windowDidLoad method:
I think I wasn't specific enough: I have a subclass of NSCell which
contains several buttons and controls. One of these is an
NSComboBoxCell. I have to somehow tunnel the mouseclick from my NSCell
subclass to the correct control (within this NSCell subclass).
Right now I am doing this by overriding trackMouse:, then checking if
e.g. the NSComboBox has been clicked (coordinate-wise) and then I call
the NSComboBox's trackMouse: method manually.
By the way: Do I have to care about the NSEvent that I forward to my
controls? Right now it's like this:
(NSCell subclass)
- trackMouse:(NSEvent*)theEvent [ . . . ] {
[ . . . ]
return [ comboBox trackMouse:theEvent . . . ];
}
Is this maybe causing trouble? Is there anything I need to be aware of
when dealing with events etc. in such a manner?
- Michael
_______________________________________________
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.