Re: NSTableView-like object for Finder-like app
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