NSTableView not letting me double-click rows always?
NSTableView not letting me double-click rows always?
- Subject: NSTableView not letting me double-click rows always?
- From: "Theodore H. Smith" <email@hidden>
- Date: Sat, 20 Aug 2005 16:43:28 +0100
I have a strange situation here.
I want to make some rows in an NSTableView have editable text, but
others should have a double-clickable action that opens the file in
the Finder.
One of the things this app does, is give a kind of "file
organisation" app, which lets you organise some files. So some of
the items in the NSTableView won't be real files or real folders, but
will be virtual ones that the user added to organise stuff.
So, when these "virtual folders" are double clicked, I want the file
name to be edited.
However, when a real file is clicked, I want the file to be opened
with it's app.
How do I do this?
I've tried, and I run up against a problem.
When I make the column's [editable] state to be true, I don't get
doubleClick events sent! However, the rows text do get edited, as
expected, as long as the row is editable.
If I set the column's [editable] state to false, I do get doubleClick
events! However, then I can't edit the text by double-clicking it.
Is there some kind of work around here?
--
http://elfdata.com/plugin/
What does our work achieve, if it's not making the world a happier
place?
http://www.whatnextjournal.co.uk/Pages/Next/Happiness.html
When's the last time you thought deeply about how to improve our lives?
_______________________________________________
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