• 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 Subclass: What's happening to my text input?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSActionCell Subclass: What's happening to my text input?


  • Subject: NSActionCell Subclass: What's happening to my text input?
  • From: "douglas a. welton" <email@hidden>
  • Date: Tue, 18 Apr 2006 11:33:05 -0400

Hi All,

I have a subclass of NSActionCell that I am using to do custom drawing in an NSMatrix. Based on the state of the cell's configuration, the cell executes -drawWithFrame: using combinations of several other cell types (e.g., NSButtonCell, NSTextFieldCell, and NSPopUpButtonCell). I have also attached targets and actions to each sub-cell type.

My problem is that when I enter text into the NSTextFieldCell and press Return or Tab, my text disappears and the action that I have associated with the NSTextFieldCell is not called. (For a screen capture, see <http://www.einsteinslegacy.com/Downloads/Cell.png";>. The NSTextFieldCell that is causing the issue is on the far right)

Actions for the other cells (buttons and popup menus) being used are being called, as expected.

The NSTextCell is setup with a target, an action, and the SendsActionOnEndEditing flag set to YES. Am I missing something obvious in how I should set things up?

Any help, suggestions, pointers will be greatly appreciated.

thanks,

douglas

PS: I searched the archives using the string "custom cell nstextfieldcell matrix" but it only returned one hit that was useful... and that message had no replies
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: Auto-complete in an NSTextView
  • Next by Date: Re: Choose an NSFont with specific line height?
  • Previous by thread: Re: NSOpenPanel and field setting
  • Next by thread: dragging into a tableView
  • Index(es):
    • Date
    • Thread