• 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: NSTableView and setDoubleAction:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView and setDoubleAction:


  • Subject: Re: NSTableView and setDoubleAction:
  • From: Glenn Zelniker <email@hidden>
  • Date: Thu, 11 Jan 2007 15:42:39 -0500


On Jan 11, 2007, at 3:35 PM, Ryan Homer wrote:

(I apologize if this message comes through more than once; problems with Mail)

I have an NSTableView with two columns and have set each column as NOT editable in Interface Builder. In my awakeFromNib method I have:

- (void)awakeFromNib
{
	.
	.
	.
	[contactListView setDataSource:self];
	[contactListView setDelegate:self];
	[contactListView setDoubleAction:@selector(rowDoubleClicked:)];
}

and in the same class, I also have:

- (IBAction)rowDoubleClicked:(id)sender
{
	.
	.
	.
}

However, when I double-click on a row, it gets highlighted but rowDoubleClicked: never gets called.


Add this:

[contactListView setTarget:self];

GZ
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSTableView and setDoubleAction: (From: Ryan Homer <email@hidden>)

  • Prev by Date: Re: When NSArray is not an Array
  • Next by Date: Re: NSTableView and setDoubleAction:
  • Previous by thread: NSTableView and setDoubleAction:
  • Next by thread: Re: NSTableView and setDoubleAction:
  • Index(es):
    • Date
    • Thread