• 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: Panning a View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Panning a View


  • Subject: Re: Panning a View
  • From: David Blanton <email@hidden>
  • Date: Tue, 28 Jul 2009 12:39:31 -0600

I am changing now ... thanks!

On Jul 28, 2009, at 12:10 PM, Erik Buck wrote:

That was the right approach ... one twist, I set the view frame when
drawRect is called to the size of my image.

Don't do that. Do read the documentation. The only thing you should do in -drawRect: is draw. In particular, changing the frame inside drawRect: will invalidate all or part of the calculations performed by the framework in -display and other view drawing methods that are called before and after -drawRect:.


_______________________________________________

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




_______________________________________________

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


References: 
 >Re: Panning a View (From: Erik Buck <email@hidden>)

  • Prev by Date: Re: NSWindow reference remains null after window did load
  • Next by Date: Re: App Delegate in Document App
  • Previous by thread: Re: Panning a View
  • Next by thread: Making NSTextView not wrap lines
  • Index(es):
    • Date
    • Thread