• 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: not performing selector...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: not performing selector...


  • Subject: Re: not performing selector...
  • From: Laurent Daudelin <email@hidden>
  • Date: Mon, 03 Nov 2003 02:22:15 -0500

on 11/3/03 2:13 AM, Malcolm Sharman at email@hidden wrote:

> Hi
>
> I have a subclass of NSTableView that draws cells slightly differently, and
> the drawing methods are the only ones that are overridden from the base
> class.
>
> I'm trying to set the double click action using the following code in
> awakeFromNib
>
>
> [theList setDataSource:self];
> [theList setDoubleAction:@selector(collectData:) ];
>
> And collectData is an instance method of the same class defined as
>
> -(void)collectData
> {
> NSLog(@"collectData code")
> }
>
> For some reason when the cell or the table heading is double clicked on, the
> selector is not performed.
>
> I made sure that the cells aren't editable in IB, and I'm stuck at this
> point.
>

I believe that the double action is not sent to the data source, but to the
target. So, instead of or in addition to sending setDataSource:, you need to
send the table view setTarget: with self.

-Laurent.
--
============================================================================
Laurent Daudelin AIM/iChat: LaurentDaudelin <http://nemesys.dyndns.org>
Logiciels Nemesys Software mailto:email@hidden

elder days n.: The heroic age of hackerdom (roughly, pre-1980); the era of
the PDP-10, TECO, ITS, and the ARPANET. This term has been rather
consciously adopted from J. R. R. Tolkien's fantasy epic "The Lord of the
Rings". Compare Iron Age; see also elvish and Great Worm.
_______________________________________________
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.

References: 
 >not performing selector... (From: Malcolm Sharman <email@hidden>)

  • Prev by Date: Re: Distributed Objects overkill?
  • Next by Date: Re: not performing selector...
  • Previous by thread: not performing selector...
  • Next by thread: Re: not performing selector...
  • Index(es):
    • Date
    • Thread