Re: Uneditable NSTableView
Re: Uneditable NSTableView
- Subject: Re: Uneditable NSTableView
- From: Ian Jackson <email@hidden>
- Date: Wed, 23 Apr 2008 21:22:57 +1200
Perhaps you have a good reason, but from your description, and being
used to using Mail, I'd expect the lower part to display the content
with a single click.
Have you used setTarget: and setAction: to coordinate this double
click event?
Ian.
On 23/04/2008, at 8:33 PM, Ewan Delanoy wrote:
Hello all,
I'm trying to construct a Cocoa app that mimicks the Mail
application,
with the difference
that it's not especially intended for mails : one the upper part a
list of
titles, and on the lower
part exactly one title&text is shown. Double-clicking on a title in
the
upper part makes the corresponding text displayed in the lower part.
I implement the upper part as a NSTableView subclass (which I call
UneditableTableView), with one column and all rows uneditable (by
setting
the tableView:shouldEditTableColumn:row:
method to always return NO in the delegate). That main app controller
a signature of signature -
(void)updateLowerPartAfterSelectionInUpperPart
that makes the lower part display
the text associated to the title just selected. Finally, in some
place in
my code
I have the line
[uneditableTableView
setDoubleAction:@selector(updateLowerPartAfterSelectionInUpperPart:)];
Unfortunately, this doesn't work : although the rows are indeed
uneditable and I can select
any one of them, the "updateLowerPartAfterSelectionInUpperPart"
method is
never called
when I double-click on a title. Does anyone have any idea of what I
should
do to fix this?
TIA
,
Ewan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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