problem with custom field editor (NSTextView)
problem with custom field editor (NSTextView)
- Subject: problem with custom field editor (NSTextView)
- From: Andreas Känner <email@hidden>
- Date: Thu, 10 Nov 2005 15:31:08 +0100
Hello everyone,
I have trouble with a custom field editor which I want to use to edit
cells in a tableview. The custom field editor is a subclass of
NSTextView. My first attempt to replace the behavior is to put a
(custom) subview into NSTextView. I avoid the insertion point by
overriding shouldDrawInsertionPoint. In keyDown: I dispatch key
messages to my custom subview.
So far this works well while I'm editing. But the problem is that the
content in the tableview will not be replaced with the content from
the field editor.
I've replaced setString: and string: in my custom field editor to set
and obtain values from my subview, but this does not work.
Maybe this it not the right sollution for what I want to do? Has
annyone been successfully implemented a custom field editor which
displays no text input field?
Thanks for any help
Andreas
_______________________________________________
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