• 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
Editing text in a custom view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Editing text in a custom view?


  • Subject: Editing text in a custom view?
  • From: Håkan Waara <email@hidden>
  • Date: Tue, 16 May 2006 13:38:57 +0200

Hi all,

I'm trying to get an editing capability into my custom view.

The approach I'm trying right now is:

* Create a NSTextView*,
* add it to my view with [self addSubView:textView];
* mark my view as dirty with [self setNeedsDisplay:YES];
* Lastly, I set the textView to be the first responder.

I can see a white rect is drawn at the right spot at first, but it's not refreshed, I don't see a caret and can't input any text.

What am I missing here?

/Håkan _______________________________________________
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: [ANN] CodeSynthesis XSD - XML data binding compiler for C++
  • Next by Date: Re: Thumbnail hints
  • Previous by thread: Re: [ANN] CodeSynthesis XSD - XML data binding compiler for C++
  • Next by thread: QTMovieView crash
  • Index(es):
    • Date
    • Thread