Re: How to get NSText for custom NSCell in NSTable?
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