Re: Crash in _gatherFocusStateInto:upTo:withContext:?
Re: Crash in _gatherFocusStateInto:upTo:withContext:?
- Subject: Re: Crash in _gatherFocusStateInto:upTo:withContext:?
- From: Keith Blount <email@hidden>
- Date: Thu, 3 Nov 2005 10:52:53 -0800 (PST)
Many thanks for the reply - much appreciated.
Unfortunately, this hasn't fixed the problem.
NSLogging reveals that in _blinkCaret: the window is
non-nil, and has a positive window number. The
crash/assertion failure seems to be happening after
this, in _gatherFocusStateInto:upTo:withContext:.
I have no idea what I can do to fix this, as it seems
to be internal and not something in my code. I'm going
to file a bug on it, but that's not really going to
help - I can't wait a year for a fix...
If anyone has any ideas, I would be really grateful.
Thanks again for your help, Martin.
Keith
--- Martin <email@hidden> wrote:
>
> On November 02 2005, Keith Blount
> <email@hidden> wrote:
>
> >I have a text view that I swap into a new window in
> >order to launch it into full screen. On occasions,
> >however, when switching windows, I am getting the
> >following assertion failuer causing buggy
> behaviour:
>
> I've also seen this. We had an NSTextView inside a
> tab view. Sometimes when the user switched tabs the
> NSTextView would cause a crash. The (somewhat
> dirty) solution was to override _blinkCaret: as
> follows:
>
> - (void) _blinkCaret:(id)obj
> {
> if( nil == [self window] ) return;
> [super _blinkCaret:obj];
> }
>
> Not sure if the override causes any secondary
> effects, but we haven't seen the other crash since.
>
> ~Martin
>
>
>
---
Hello,
I have a text view that I swap into a new window in
order to launch it into full screen. On occasions,
however, when switching windows, I am getting the
following assertion failuer causing buggy behaviour:
*** Assertion failure in -[NSNextStepFrame
_gatherFocusStateInto:upTo:withContext:],
AppKit.subproj/NSView.m ... non-positive window number
... Exception raised during background layout:
non-positive window number
This seems to happen when my text view is scaled
(though that may having nothing to do with it) and
scrolled to the bottom of the text. Debugging just
brings up lots of private text methods, such as
-blinkCaret:.
Does anybody have any idea what might be causing this?
Many thanks in advance,
Keith
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
_______________________________________________
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