[NSInternalConsistencyException] Setting a drawer's new content view under Tiger
[NSInternalConsistencyException] Setting a drawer's new content view under Tiger
- Subject: [NSInternalConsistencyException] Setting a drawer's new content view under Tiger
- From: Frédéric BLANC <email@hidden>
- Date: Sun, 8 May 2005 19:43:16 +0200
[Preliminary Note: I'm double-posting this on both "cocoa-dev" AND
"java-dev" since my app is Cocoa-Java-based… Sorry for the potential
annoyance.]
===
Hi again,
I'm experiencing an NSInternalInconsistencyException when using
NSTextView & NSDrawer in Tiger :( ! Once again, this "error" didn't
show on Panther… Since this *does* affect the process, I'm here even
more eager to understand what happens and fix it ;) !
In a few words, typing some text in a text view, and then calling
setContentView(aView) on aDrawer seems to lead to the following log:
<<
[Session started at 2005-05-08 19:36:15 +0200.]
2005-05-08 19:36:31.369 MyApp[806] *** Assertion failure in -[NSView
_gatherFocusStateInto:upTo:withContext:], AppKit.subproj/NSView.m:3125
2005-05-08 19:36:31.422 MyApp[806] NSInternalInconsistencyException:
non-positive window number
Stack Trace:
NSInternalInconsistencyException: non-positive window number
at com.apple.cocoa.application.NSDrawer.setContentView(Native Method)
at Controller.submit(Controller.java:18)
>>
I've built a sample project for you to see+test(+fix :) ?) my issue.
Just build+run it, click the "Edit" button, fill some text in the text
view, "Submit" it; and you should see the log :( ! (Note: You *should*
b/c it's happening very often, but not everytime…) You can grab a tiny
.zip archive (27 KB) here:
http://blanc.free.fr/pub/temp/NSInternalConsistencyException.zip
(MANY) Thx in advance for any suggestion… This is the sole
"regression" I'm experiencing from Panther to Tiger on this app; but
zero issues would have been even neater ;) !
Bye,
--
— 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