Re: Need help in setting up an NSTevtView in an overlay window
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