• 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
problem with custom field editor (NSTextView)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: CGSessionCopyCurrentDictionary
  • Next by Date: Sort array speed
  • Previous by thread: Re: NSArrayController/TreeController out of bounds
  • Next by thread: Sort array speed
  • Index(es):
    • Date
    • Thread