• 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
Need help in setting up an NSTevtView in an overlay window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help in setting up an NSTevtView in an overlay window


  • Subject: Need help in setting up an NSTevtView in an overlay window
  • From: David Rice <email@hidden>
  • Date: Thu, 25 Aug 2005 13:51:11 -0400

I have a movieView in a window and a child window with an NsTextView above.

I have set the bg of the textView to transparent and added some text with insertText.
I can scroll this text manually and programatically over the playing movie.
I can double click on a word in the textView and the text highlights, but it looks like the highlight is in an inactive window. i.e grey highlight.
I can drag and drop text into the textView.
But I can't type into the textView.


Could someone please point out what am I missing to make the textView editable?

Here is the code to build the textView from my awakeFromNib method:


myTextView = [[NSTextView alloc] initWithFrame:subViewRect]; [[overlayWindow contentView] addSubview:myTextView];

    scrollView = [[NSScrollView alloc] initWithFrame:subViewRect];
    [[overlayWindow contentView] addSubview: scrollView];

    [scrollView setDocumentView:myTextView];

    [movieWindow addChildWindow:overlayWindow ordered:NSWindowAbove];
    [overlayWindow orderFront:self];


Thanks, David _______________________________________________ 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
  • Follow-Ups:
    • Re: Need help in setting up an NSTevtView in an overlay window
      • From: Ryan Stevens <email@hidden>
  • Prev by Date: Re: Custom Title bars
  • Next by Date: Re: Need help in setting up an NSTevtView in an overlay window
  • Previous by thread: RE: QTMovieView in a split view - very weird stuff (SOLVED - oddly)
  • Next by thread: Re: Need help in setting up an NSTevtView in an overlay window
  • Index(es):
    • Date
    • Thread