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