Re: Navigating a TableView: A Solution
Re: Navigating a TableView: A Solution
- Subject: Re: Navigating a TableView: A Solution
- From: Matt Neuburg <email@hidden>
- Date: Mon, 13 Mar 2006 11:08:56 -0800
- Thread-topic: Navigating a TableView: A Solution
On Mon, 13 Mar 2006 07:07:13 -0700, Peter Bates <email@hidden> said:
>Matt, following up on your suggestion, I've been experimenting with -
>(BOOL)textView:(NSTextView *)aTextView doCommandBySelector:(SEL)
>aSelector.
>
>I expected to be able to respond to it in my tableView subclass,
>since it is the field editor's delegate, but discovered that the
>tableView sends this message, which must be responded to by the
>tableView's delegate. So to implement this strategy, I might not
>subclass NSTableView at all, but just provide a delegate object for
>the tables. Is my understanding correct to this point?
Experiment and find out. My concern was simply to show you that there was no
need for the egregious approach of subclassing NSWindow and interfering with
the event-sending mechanism - that you should use the framework (or perhaps
better, let it use you), not subvert it. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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