• 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: extra redrawing with [self setBounds:] in drawRect:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: extra redrawing with [self setBounds:] in drawRect:


  • Subject: Re: extra redrawing with [self setBounds:] in drawRect:
  • From: Nathan Vander Wilt <email@hidden>
  • Date: Mon, 28 Jan 2008 20:58:42 -0600 (CST)

>>In my custom view, I set the bounds in my drawRect:
>>method before drawing. This is so that while the
user
>>is resizing the window, the content stretches with
the
>>view.
[...]
>>Somehow this selection rectangle code triggers
random
>>extra redrawing.

> It is unclear why you need to resize your view
inside of -drawRect:.
> This is surely the root cause of your problem.

I am not resizing the view programmatically via
-setFrame:, I am setting the internal coordinate
system via -setBounds. If I understand correctly, all
this should do is set the transformation matrix. Yet
somehow between doing that and invalidating a part of
the view, I end up getting tons of extra redraw
requests.



      ____________________________________________________________________________________
¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:
http://correo.espanol.yahoo.com/
_______________________________________________

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

  • Prev by Date: Re: extra redrawing with [self setBounds:] in drawRect:
  • Next by Date: [Job] Cocoa developer wanted
  • Previous by thread: Re: extra redrawing with [self setBounds:] in drawRect:
  • Next by thread: How can I retrieve the control's message?
  • Index(es):
    • Date
    • Thread