• 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: Stéphane Sudre <email@hidden>
  • Date: Fri, 31 Oct 2003 19:13:08 +0100

In -(void) awakeFronNib

id tPrototypeCell;
NSTableColumn *tColumn;

tPrototypeCell=[tColumn dataCell];
[tPrototypeCell setAction:@selector(myAction:)];
[tPrototypeCell setTarget:MyTarget];

?

On Friday, October 31, 2003, at 06:29 PM, Michael Becker wrote:

Hello!

I have an NSTableView that adds rows when certain data is dragged & dropped onto the NSTableView. Every new row contains an NSButtonCell with a "Delete" button. Everything works fine, so far. However, I don't know how to perform an action when the button is pressed. Because buttons are added dynamically, I cannot connect them via Interface Builder.

Any help will be appreciated!

Thanks!
- Michael
_______________________________________________
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.
_______________________________________________
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: 
 >NSButtonCell in NSTableView: How can I define button action? (From: Michael Becker <email@hidden>)

  • Prev by Date: Detecting login/logout?
  • Next by Date: Re: NSButtonCell in NSTableView: How can I define button action?
  • Previous by thread: NSButtonCell in NSTableView: How can I define button action?
  • Next by thread: Re: NSButtonCell in NSTableView: How can I define button action?
  • Index(es):
    • Date
    • Thread