• 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: How to get NSText for custom NSCell in NSTable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get NSText for custom NSCell in NSTable?


  • Subject: Re: How to get NSText for custom NSCell in NSTable?
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 5 Dec 2005 10:40:42 -0800


On Dec 3, 2005, at 7:47 PM, Guy Umbright wrote:

I have a custom NSCell that I want to use in an NSTable. The custom cell consists of an NSTextFieldCell
and an NSButtonCell when the TextFieldCell is being editted. So when I click I want to cause the
NSTextFieldCell to edit but to call editWithFrame:inView:editor:delegate:event I need an NSText object?

Where do I get it from?


From the window. The field editor is obtained from the window using fieldEditor:forObject:, where the object is the control.

However, if what you have is a custom cell rather than a custom control, it seems to me that your control would likely be calling editWithFrame:inView:editor:delegate:event: on your custom cell, in which case you could presumably just pass the arguments on to the text field cell without having to worry about obtaining a field editor.

Douglas Davidson

_______________________________________________
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
References: 
 >How to get NSText for custom NSCell in NSTable? (From: Guy Umbright <email@hidden>)

  • Prev by Date: Re: How to get NSText for custom NSCell in NSTable?
  • Next by Date: Re: How to get NSText for custom NSCell in NSTable?
  • Previous by thread: Re: How to get NSText for custom NSCell in NSTable?
  • Next by thread: Is it possible to control "returnCode" value when using Custom Sheet?
  • Index(es):
    • Date
    • Thread