• 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
Re: NSTableView-like object for Finder-like app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView-like object for Finder-like app


  • Subject: Re: NSTableView-like object for Finder-like app
  • From: "I. Savant" <email@hidden>
  • Date: Mon, 16 Apr 2007 10:09:53 -0400

On Apr 16, 2007, at 9:58 AM, Ewan Delanoy wrote:
As far as I know, this is not the kind of job
NSTableView does : a double-click on an item is understood
by the system as the beginning of a text edit on that item, so one could
only cheat by doing things in the -textDidBeginEditing:
delegate method (??)




If you take a look at the documentation for NSTableView, you should see a method called -setDoubleAction: ...

"Sets the message sent to the target when the user double-clicks an uneditable cell or a column header to a given selector."

So it depends on what you want to have happen when a cell is double-clicked. If you want to be able to rename things, this may not be the best approach.

  If you want more of an "icon view", you might want to check this out:

http://www.cocoadev.com/index.pl?FlowLayoutView

--
I.S.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSTableView-like object for Finder-like app (From: "Ewan Delanoy" <email@hidden>)

  • Prev by Date: Re: NSTableView-like object for Finder-like app
  • Next by Date: Re: display NSXMLDocument with NSOutlineView and NSTreeController
  • Previous by thread: Re: NSTableView-like object for Finder-like app
  • Next by thread: Import sqlite data file
  • Index(es):
    • Date
    • Thread