Re: NSButtonCell in NSTableView: How can I define button action?
Re: NSButtonCell in NSTableView: How can I define button action?
- Subject: Re: NSButtonCell in NSTableView: How can I define button action?
- From: Michael Hudson <email@hidden>
- Date: Mon, 03 Nov 2003 13:19:29 +0000
Michael Becker <email@hidden> writes:
>
Thanks! That was very helpful. Just one other little question and my
>
problem is solved: I would like to use the row of the clicked button
>
in my action method. How do I (syntactically) pass this argument to
>
the action method?
>
>
This is my code (snippets):
>
>
// right now the variable rowIndex contains the row
>
[ myButtonCell setAction:(SEL)@selector(deleteObject:)];
>
. . .
>
>
- (void)deleteObject:(id)sender
>
{
>
// Here I would like to have the row-index
[sender clickedRow]?
I think sender will be the table view in this context, and if not, you
probably have an outlet already, right? :-)
Cheers,
mwh
--
> Well, as an American citizen I hope that the EU tells the MPAA
> and RIAA to shove it where the Sun don't shine.
Actually they already did. Only first they bent over and dropped
their trousers. -- Shmuel (Seymour J.) Metz & Toni Lassila, asr
_______________________________________________
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.