• 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
Selector runs only once
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Selector runs only once


  • Subject: Selector runs only once
  • From: Sanri Parov <email@hidden>
  • Date: Tue, 2 Sep 2003 23:50:50 +0200

Hi everybody,

I've got to deal with a simple table view in a class and I'd like it to
do something when I double click the mouse on it. I thought adding this:

- (void)awakeFromNib
{
[table_gui setTarget:self];
[table_gui setDoubleAction:@selector(mySelector)];
}

but the selector "mySelector" works only if I doubleclick on 'table'
just after the app starts, not if I do something else with the class
which controls 'table'.
I'd like it to run for the entire duration of my application.
What am I doing wrong?

--
Sanri Parov
_______________________________________________
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: Selector runs only once
      • From: Stephane Le Cornec <email@hidden>
    • Re: Selector runs only once
      • From: Phill Kelley <email@hidden>
  • Prev by Date: Running NSStatusItems At Startup
  • Next by Date: Re: NSImage from Palm Bitmap?
  • Previous by thread: Re: C again
  • Next by thread: Re: Selector runs only once
  • Index(es):
    • Date
    • Thread