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

Re: Need help in setting up an NSTevtView in an overlay window


  • Subject: Re: Need help in setting up an NSTevtView in an overlay window
  • From: Ryan Stevens <email@hidden>
  • Date: Thu, 25 Aug 2005 11:11:06 -0700

It might be that your window isn't able to become key. Subclass and add;
- (BOOL) canBecomeKeyWindow
{
   return YES;
}

On Aug 25, 2005, at 10:51 AM, David Rice wrote:

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: David Rice <email@hidden>
References: 
 >Need help in setting up an NSTevtView in an overlay window (From: David Rice <email@hidden>)

  • Prev by Date: Need help in setting up an NSTevtView in an overlay window
  • Next by Date: Re: Alloc Mocks my World
  • Previous by thread: Need help in setting up an NSTevtView in an overlay window
  • Next by thread: Re: Need help in setting up an NSTevtView in an overlay window
  • Index(es):
    • Date
    • Thread