• 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
Re: NSBrowser Drag Source
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: NSBrowser Drag Source
  • Next by Date: NSLocalizedString fails rarely?
  • Previous by thread: NSBrowser Drag Source
  • Next by thread: NSLocalizedString fails rarely?
  • Index(es):
    • Date
    • Thread