• 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: NSButtonCell in NSTableView: How can I define button action?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: login items
  • Next by Date: Re: Panther/Xcode and availability macros
  • Previous by thread: login items
  • Next by thread: Changing Resolutions
  • Index(es):
    • Date
    • Thread