• 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: cocoa-dev digest, Vol 2 #4302 - 16 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa-dev digest, Vol 2 #4302 - 16 msgs


  • Subject: Re: cocoa-dev digest, Vol 2 #4302 - 16 msgs
  • From: "Ian G. Gillespie" <email@hidden>
  • Date: Fri, 4 Jun 2004 17:14:34 -0700

Hi Moray,

If you sub-class an NSTextFieldCell (or any cell for that matter) and put it in your tableView you can then over-ride:

- (BOOL)trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame ofView:(NSView *)controlView untilMouseUp:(BOOL)untilMouseUp

which I believe will be called when the user clicks the cell.

Hope this helps.
Ian


Message: 12
To: Cocoa Users <email@hidden>
From: Moray Taylor <email@hidden>
Subject: Help: Detect click of cell in NSTableView
Date: Sat, 5 Jun 2004 00:07:07 +0100

Hi,

I want to know which cell was clicked in an NSTableView, I can get row
very easily of course, but how do I get the column? (If I know both, I
could figure out the cell.) I can get the click on a column header with
the NSTableView delegates, but I'd like to be able to get the column
wherever the user clicked.

Thanks for any suggestions

Moray
_______________________________________________
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: Re: Mutable and Immutable Designs
  • Next by Date: Re: The best way to determine if my app is already running
  • Previous by thread: Help: Detect click of cell in NSTableView
  • Next by thread: Re: The best way to determine if my app is already running
  • Index(es):
    • Date
    • Thread