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

clicking in NSCells


  • Subject: clicking in NSCells
  • From: Robert Vasvari <email@hidden>
  • Date: Fri, 22 Feb 2002 17:35:41 -0800 (PST)

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?
R
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
_______________________________________________
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.

  • Follow-Ups:
    • Re: clicking in NSCells
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: applicationShouldTerminate oddity
  • Next by Date: Accessing Classic Mac Resources from Cocoa
  • Previous by thread: Re: NSWorkspaceRecycleOperation and auto-renaming items moved to Trash
  • Next by thread: Re: clicking in NSCells
  • Index(es):
    • Date
    • Thread