Re: NSBrowser Drag Source
Re: NSBrowser Drag Source
- Subject: Re: NSBrowser Drag Source
- From: Timothy Ritchey <email@hidden>
- Date: Sat, 13 Dec 2003 19:10:08 -0500
Answering my own question. After I wrote the email, I realized a
possible solution: set the firstResponder:
- (void)mouseDown:(NSEvent *)event
{
// need to override this because NSMatrix eats drag events
int row, col;
if ([self getRow: &row column: &col
forPoint:[self convertPoint:[event locationInWindow]
fromView: nil]]) {
[self selectCellAtRow: row column: col];
[self sendAction];
[[self window] makeFirstResponder:self]; // <-- ### added this
line ###
} else {
[super mouseDown: event];
}
}
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.