• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Crash in _blinkCaretTimerAction (NSTextView)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Crash in _blinkCaretTimerAction (NSTextView)
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: NSTextView unarchived from nib missing pointing hand cursor over links?
  • Next by Date: Re: Crash in _blinkCaretTimerAction (NSTextView)
  • Previous by thread: Re: Crash in _blinkCaretTimerAction (NSTextView)
  • Next by thread: Re: Crash in _blinkCaretTimerAction (NSTextView)
  • Index(es):
    • Date
    • Thread