Re:Navigating a TableView
Re:Navigating a TableView
- Subject: Re:Navigating a TableView
- From: Peter Bates <email@hidden>
- Date: Tue, 14 Mar 2006 19:34:34 -0700
OK. Thanks Matt.
I found it difficult to distinguish some key events using - (BOOL)
textView:(NSTextView *)aTextView doCommandBySelector:(SEL)aSelector,
but it made a convenient place to call [NSApp currentEvent], check to
see if was a keyDown event, and then do my thing. So now I have been
able to eliminate the window subclass, and instead of having a
separate subclass for each tableview, I have only one NSTableView
subclass. Similarly, I subclassed NSArrayController to hold the code
for navigating the tableview, and making the underlying data
changes. I make the array controller the delegate of the tableview,
and have an outlet for the tableview in the arraycontroller.
So my app is now less complex, smaller, and will be easier to maintain.
I appreciate your help.
-- Pete
_______________________________________________
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