Re: Adding methods to dataSource
Re: Adding methods to dataSource
- Subject: Re: Adding methods to dataSource
- From: Yann Bizeul <email@hidden>
- Date: Fri, 2 Jul 2004 10:08:00 +0200
You can either put a category for NSOutlineViewDataSource, in your
NSOutlineView's subclass .m file :
@interface NSOutlineViewDataSource (deleteItem)
- (void) deleteItem:(id)item;
@end
or use :
performSelector:withObject:
But you can't pass an int (should I say : I don't know how to pass
something else than an object, like an int)
Le 2 juil. 04, ` 08:49, Bjvrn Carlstrvm a icrit :
>
I'm subclassing NSOutlineView to add the possibility to delete rows
>
through the delete key. How do I add a new method (deleteItem:) to the
>
NSOutlineViewDataSource. Just calling it works of course but I get a
>
warning that the method might not exist. Do I subclass the
>
NSOutlineViewDataSource somehow ?
>
>
Bjvrn Carlstrvm
>
_______________________________________________
>
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.
>
>
>
--
Yann Bizeul - yann at tynsoe.org
http://projects.tynsoe.org/
_______________________________________________
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.