• 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: Subclass NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclass NSTableView


  • Subject: Re: Subclass NSTableView
  • From: J Nozzi <email@hidden>
  • Date: Mon, 22 Dec 2003 11:34:15 -0500

Ack! Datasource ... meant to say that. ;-)

Perhaps a better question to ask is this: If you have different tables getting DIFFERENT DATA, would you recommend using a different data source or is it okay to just identify the table and respond accordingly (especially with subclassed NSTableView's)?

- J

On Dec 22, 2003, at 11:28 AM, Jonathan E. Jackel wrote:

Don't change the method signature. If necessary, you can figure out what
kind of table view has been handed to the datasource (not delegate) by
testing it with something like if([tableView isKindOfClass:[MyTableView
class]).

Jonathan

I've subclassed NSTableView to override textDidEndEditing: in order
to intercept the return key as 'end editing'.

I was wondering if I had to modify the delegate method signatures at
all:

- (id)tableView:(NSTableView *)tableView
objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row

In other words, should NSTableView become MyTableView? Since I'm
changing the behavior, I wouldn't want to send the delegate an
NSTableView since the textDidEndEditing: acts differently.

Forever Missing the Obvious,

- J
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >RE: Subclass NSTableView (From: "Jonathan E. Jackel" <email@hidden>)

  • Prev by Date: RE: Subclass NSTableView
  • Next by Date: Re:[OT] True multiuser?
  • Previous by thread: RE: Subclass NSTableView
  • Next by thread: Re: Subclass NSTableView
  • Index(es):
    • Date
    • Thread