Re: [NSInternalInconsistencyException] Setting a drawer's new content view under Tiger (SOLVED)
Re: [NSInternalInconsistencyException] Setting a drawer's new content view under Tiger (SOLVED)
- Subject: Re: [NSInternalInconsistencyException] Setting a drawer's new content view under Tiger (SOLVED)
- From: Frédéric BLANC <email@hidden>
- Date: Sun, 22 May 2005 01:57:50 +0200
Offlist, Marc P. advised me to modify my code so that it first resigns
my NSTextView from being the 1st responder (by calling
makeFirstResponder onto my window instance), as:
[ObjC]
- (IBAction)submit:(id)sender
{
[window makeFirstResponder:nil];
[drawer setContentView:readView];
}
[Java]
public void submit(Object sender) { /* IBAction */
window.makeFirstResponder(null);
drawer.setContentView(readView);
}
Even if I'm not sure to get the whole idea yet (I'm gonna read some
documentation to master this from now…), it really seems to do the
trick! So, thanks a lot, Marc. And sorry for the annoyance… (I'm glad
not to have bug reported this to Apple ;) !) I think it's another
example of Tiger's enforcing *proper* behaviours (since it worked
"like a charm" on Panther systems w/o such a verification…)
All in all, thx again!
--
— Frederic BLANC (email@hidden)
_______________________________________________
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