• 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 not letting me double-click rows always?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSTableView not letting me double-click rows always?
      • From: Corbin Dunn <email@hidden>
    • Re: NSTableView not letting me double-click rows always?
      • From: "Theodore H. Smith" <email@hidden>
  • Prev by Date: Re: NSButton + optionkey?
  • Next by Date: Re: NSTableView not letting me double-click rows always?
  • Previous by thread: Re: NSButton + optionkey?
  • Next by thread: Re: NSTableView not letting me double-click rows always?
  • Index(es):
    • Date
    • Thread