Re: Crash in _blinkCaretTimerAction (NSTextView)
Re: Crash in _blinkCaretTimerAction (NSTextView)
- Subject: Re: Crash in _blinkCaretTimerAction (NSTextView)
- From: "Martin" <email@hidden>
- Date: Fri, 06 Jan 2006 17:59:58 -0800
Hi Douglas,
>> who is responsible for invalidating this timer?
> The timer is explicitly invalidated in NSTextView's dealloc method.
Then I'm not sure what could be going wrong. I've logged the creation and destruction of our NSTextView subclass and when the timer fires (and crashes) all the text views associated with the layout manager have been deallocated.
Is there anything more specific I might need to know? For instance, which text view is responsible for the invalidation? I see that the timer is stored in the NSTextViewSharedData class, so do all NSTextViews check to make sure their container is not the _blinkContainer?
In thinking about it, is there any way for the blink timer to be recreated after the NSTextView deallocates? I only ask because our text view subclass is not deallocated ASAP on document close. Deallocation is delayed until the run loop finds some idle time (this is done to increase performance when closing a document with many text views).
Thanks for your help,
~Martin
_______________________________________________
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