NSTableView - how to select text when editing a column?
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