Re: connecting a NSButtonCell in an outline view
Re: connecting a NSButtonCell in an outline view
- Subject: Re: connecting a NSButtonCell in an outline view
- From: Jerry Krinock <email@hidden>
- Date: Mon, 19 Dec 2005 10:57:06 -0800
- Thread-topic: connecting a NSButtonCell in an outline view
on 05/12/19 09:40, David Alter at email@hidden wrote:
>
I have dynamically created and NSButtonCell in side an outline view.
>
But I'm not sure how to get it to respond to clicks. When clicked I
>
want it to call a method in my outline view controller. This would be
>
the equivalent it I where to connect it within Interface Builder.
>
Could someone please point me to what I need to be doing next.
Try implementing this delegate method in your outline view's delegate:
(void)tableView:(NSTableView *)aTableView
setObjectValue:anObject
forTableColumn:(NSTableColumn *)aTableColumn
row:(unsigned int)rowIndex
Probably this method will be invoked whenever the user clicks one of your
buttons in the table/outline. Check the aTableColumn identifier to see if
it is your button column and if so, you know you got a click.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden