Re: clicking in NSCells
Re: clicking in NSCells
- Subject: Re: clicking in NSCells
- From: "John C. Randolph" <email@hidden>
- Date: Fri, 22 Feb 2002 18:09:40 -0800
On Friday, February 22, 2002, at 05:35 PM, Robert Vasvari wrote:
Here is one for the Appkit gurus... i have a text cell
in a tableview. It is filled halfway with text. When
the user clicks in it, i need to know if the click
happened in the text or the empty part.
The only way i can think of doing this is to get the
font, use getWidthOf:mytext to figure out the length
of the actual text in the cell, then compare that to
the click coordinates. Is there a better way to do
this?
Your way sounds fine to me..
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
_______________________________________________
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.