• 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: NSResizableWindowMask and view update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSResizableWindowMask and view update


  • Subject: Re: NSResizableWindowMask and view update
  • From: Tony Romano <email@hidden>
  • Date: Mon, 12 Jul 2010 17:27:44 -0700

Yep, overlooked that the drawRect will give me the dirty rect.  Because the sizing handle is diagonal to the origin (0,0),  it looked like it wasn't flipped.  Fix the problem by one missing multiply in a calculation.  Thanks and it's time to call it day!

-Tony

On Jul 12, 2010, at 4:54 PM, Kyle Sluder wrote:

> On Mon, Jul 12, 2010 at 4:41 PM, Tony Romano <email@hidden> wrote:
>> During the setStyleMask, the view is sent a drawRect message which is expected.  But the values in the rect are not flipped and are not the view bounds.
>
> So? The rect argument to -drawRect: is not the size of your view. It
> is a rectangle that includes all the regions of the view that need to
> be drawn.
>
> --Kyle Sluder
>

-Tony

_______________________________________________

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: 
 >NSResizableWindowMask and view update (From: Tony Romano <email@hidden>)
 >Re: NSResizableWindowMask and view update (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Still another static analyzer (and LLVM parser) mistake
  • Next by Date: Re: Another static analyzer mistake
  • Previous by thread: Re: NSResizableWindowMask and view update
  • Next by thread: NSTextView becomes temporarily unresponsive
  • Index(es):
    • Date
    • Thread