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: 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.