RE: Subclass NSTableView
RE: Subclass NSTableView
- Subject: RE: Subclass NSTableView
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Mon, 22 Dec 2003 11:28:01 -0500
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.