• 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: connecting a NSButtonCell in an outline view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >connecting a NSButtonCell in an outline view (From: David Alter <email@hidden>)

  • Prev by Date: [CORE DATA] BackgroundFetching app explanation, and more...
  • Next by Date: Re: [CORE DATA] BackgroundFetching app explanation, and more...
  • Previous by thread: connecting a NSButtonCell in an outline view
  • Next by thread: Re: connecting a NSButtonCell in an outline view
  • Index(es):
    • Date
    • Thread