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

Re: NSActionCell and NSTextFieldCell


  • Subject: Re: NSActionCell and NSTextFieldCell
  • From: Andre Lipinski <email@hidden>
  • Date: Fri, 30 Nov 2001 01:37:23 -0500

On Thursday, November 29, 2001, at 11:24 AM, Yves Peneveyre wrote:

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 ?

Text field cells send their action under different conditions, like finishing editing the text in them. If you want to know when some one clicks a text cell, look for the beginEditing notification.

Andre.


References: 
 >NSActionCell and NSTextFieldCell (From: "Yves Peneveyre" <email@hidden>)

  • Prev by Date: Re: NSView disable
  • Next by Date: Re: Standard NSToolbarItems
  • Previous by thread: NSActionCell and NSTextFieldCell
  • Next by thread: Pop out menu in Finder Menu?
  • Index(es):
    • Date
    • Thread