• 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
NSActionCell and NSTextFieldCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSActionCell and NSTextFieldCell


  • Subject: NSActionCell and NSTextFieldCell
  • From: "Yves Peneveyre" <email@hidden>
  • Date: Thu, 29 Nov 2001 17:24:02 +0100

Hello all,

My question is about the difference between NSActionCell and
NSTextFieldCell.

I have the following code :
// For the ActionCell...
[theActionCell setTarget: self];
[theActionCell setAction: @selector(clickMethod:)];

// For the TextFieldCell...
[theTFCell set Target: self];
[theTFCell setAction: @selector(clickMethod:)];

In the first case, no problem. When the user clicks on the cell, my
"clickMethod" is called.
But, in the second case, the method isn't called.

Why ??
The NSTextFieldCell inherits from NSActionCell, doesn't it ?
So, why I don't receive this event ?

Thanks a lot for your help

Best Regards

Yves Peneveyre
----------------------------------------------------------------
Yves Peneveyre direct line : ++41 21 802 5754
Software Engineer fax : ++41 21 802 5751
LooKware development Ltd phone : ++41 21 802 5750
6B, ch du Trisi email: email@hidden
CH - 1028 Priverenges web: http://www.lookware.ch
----------------------------------------------------------------


  • Follow-Ups:
    • Re: NSActionCell and NSTextFieldCell
      • From: Andre Lipinski <email@hidden>
  • Prev by Date: Re: Mix & Match?
  • Next by Date: Pop out menu in Finder Menu?
  • Previous by thread: Re: Responder chain design
  • Next by thread: Re: NSActionCell and NSTextFieldCell
  • Index(es):
    • Date
    • Thread