• 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: clicking in NSCells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >clicking in NSCells (From: Robert Vasvari <email@hidden>)

  • Prev by Date: Re: number formatting
  • Next by Date: NSFileManager
  • Previous by thread: clicking in NSCells
  • Next by thread: Accessing Classic Mac Resources from Cocoa
  • Index(es):
    • Date
    • Thread