Re: Focus
Re: Focus
- Subject: Re: Focus
- From: Tae-Won Ha <email@hidden>
- Date: Sat, 8 Mar 2003 18:00:07 +0100
Thanks!
On Samstag, Mdr 8, 2003, at 17:27 Europe/Berlin, email@hidden
wrote:
On samedi, mars 8, 2003, at 05:16 PM, Tae-Won Ha wrote:
Hi...
I have a question regarding the focus of NSView subclasses...
I want a NSTextView get the focus when the user selects a row in a
NSOutlineView...
My code:
- (void)outlineViewSelectionDidChange:(NSNotification *)notification {
.
.
.
[outlineView unlockFocus];
[textView lockFocus];
.
.
.
}
I got this error msg:
Unlocking Focus on wrong view (<NSOutlineView: 0x16c8790>)
Are those methods the right ones?
I would say that you're making a confusion between the drawing focus
and the First responder and that what you're trying to do is:
- (void)outlineViewSelectionDidChange:(NSNotification *)notification {
.
.
.
[[textView window] makeFirstResponder: textView];
.
.
.
}
--
Tae-Won Ha
http://www.taewon.de
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.