Re: NSComboBoxCell in NSTableView
Re: NSComboBoxCell in NSTableView
- Subject: Re: NSComboBoxCell in NSTableView
- From: Scott Anguish <email@hidden>
- Date: Sun, 7 Dec 2003 01:18:07 -0500
I know it's old, but it still applies..
NSCell in your application
http://www.stepwise.com/Articles/Technical/NSCell.html
On Dec 6, 2003, at 4:30 PM, Michael Becker wrote:
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.
_______________________________________________
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.