• 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: DoubleClick in a NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DoubleClick in a NSTableView


  • Subject: Re: DoubleClick in a NSTableView
  • From: Frank Blome <email@hidden>
  • Date: Mon, 10 Jun 2002 11:39:47 +0200

On Montag, Juni 10, 2002, at 07:03 AM, Mike Vannorsdel wrote:

Don't forget to set the target too, or the table view won't know who to send
the message to.

[yourTableView setTarget: someObject];
[yourTableView setDoubleAction: @selector (yourDoubleClickAction:)];

In the meantime I found it in the documentation and implemented it as described:

// in my .h:
- (IBAction) myDoubleClickInList:(id)sender;

// in my .m
- (void) awakeFromNib {
//...
[table setTarget:self];
[table setDoubleAction:@selector(myDoubleClickInList:)];
//...
}

- (IBAction) myDoubleClickInList:(id)sender {
NSLog (@"myDoubleClickInList");
}


But unfortunately it doesn't work. I have set the Delegate in the IB (I need it for someting other, too), can compile w/out any warning nor error but nothing happens when I double-click in my table :-(

Where is my fault?

Frank
_______________________________________________
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.

  • Follow-Ups:
    • Re: DoubleClick in a NSTableView
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: DoubleClick in a NSTableView (From: Mike Vannorsdel <email@hidden>)

  • Prev by Date: Re: Sorting a two-dimensional NSMutableArray
  • Next by Date: Some NSSplitView questions
  • Previous by thread: Re: DoubleClick in a NSTableView
  • Next by thread: Re: DoubleClick in a NSTableView
  • Index(es):
    • Date
    • Thread