• 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:Navigating a TableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: NSCell subclass text not changing attribute on selection?
  • Next by Date: article about my group at intuit
  • Previous by thread: Re: NSCell subclass text not changing attribute on selection?
  • Next by thread: article about my group at intuit
  • Index(es):
    • Date
    • Thread