• 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
NSTableView - how to select text when editing a column?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView - how to select text when editing a column?


  • Subject: NSTableView - how to select text when editing a column?
  • From: "Roni Music" <email@hidden>
  • Date: Fri, 7 Jul 2006 09:36:57 +0200

Hi,

I'm using the NSTableView and everything is working fine.

To edit a specific row/column, I do:

int theRow = [mMyTableView selectedRow];
[mMyTableView editColumn:0 row:theRow withEvent:nil select:YES];

This displays the edit field and and I can type some new text, fine.

However I would like not to have the entire text selected but just a part of it.

I'm displaying file names such as:
"AFileName.mp3 "and I would like just the"AFileName" portion selected and not the file extension ".mp3"


I've googled a lot for a solution but can't find any.

Thanks for any help!
Rolf


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: [SOLVED] createDirectoryAtPath anomaly between system versions?
  • Next by Date: Core Data document-based apps saves empty files
  • Previous by thread: more drag source problem
  • Next by thread: Re: NSTableView - how to select text when editing a column?
  • Index(es):
    • Date
    • Thread