• 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
drawRect infinite loop -- argh!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

drawRect infinite loop -- argh!


  • Subject: drawRect infinite loop -- argh!
  • From: Brian Hughes <email@hidden>
  • Date: Sat, 19 Jul 2008 23:51:08 -0400
  • Importance: Normal

How do I track down the cause of an infinite loop in my drawRect method.  I have eliminated all extraneous code from the drawRect method but it is still looping.  Here's what is left of the code:

- (void)drawRect:(NSRect)rect
{
	NSLog (@" In LNTab3View.m drawRect:");
}

LNTabView is a custom view inside a tabView at index 2.  It is the view that is looping its drawRect method. It is the only view inside the tab but there are numerous buttons and textFields.

I do have a NSTimer associated with the tab and when activated it fires once a second.  The drawRect loop occurs with or without the timer firing, and at a much faster rate per second (62 times per second approx.)
Any help would be greatly apprectiated
_________________________________________________________________
Time for vacation? WIN what you need- enter now!
http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: drawRect infinite loop -- argh!
      • From: Andy Lee <email@hidden>
    • Re: drawRect infinite loop -- argh!
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Dot Syntax docs missing?
  • Next by Date: Re: drawRect infinite loop -- argh!
  • Previous by thread: Re: NSNumber Formatter with percent?
  • Next by thread: Re: drawRect infinite loop -- argh!
  • Index(es):
    • Date
    • Thread