• 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: NSView + NSScrollView, not scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView + NSScrollView, not scrolling


  • Subject: Re: NSView + NSScrollView, not scrolling
  • From: qvacua <email@hidden>
  • Date: Mon, 07 May 2012 21:47:36 +0200

No, it does not help. I think since I am not scaling the view or sth.
like that, the difference between frame and bounds should be
irrelevant for this problem.

Tae

On Sat, May 5, 2012 at 6:12 PM, Andy Lee <email@hidden> wrote:
> On May 5, 2012, at 3:31 AM, qvacua wrote:
>> - (void)drawRect:(NSRect)dirtyRect {
>>    [[NSColor yellowColor] set];
>>    NSRectFill([self frame]);
>> }
>
> Using [self frame] is a bug. [self frame] returns a rectangle in the *superview's* coordinate system, whereas NSRectFill expects a rectangle in *self's* coordinate system. Does it help if you correct this to NSRectFill([self bounds])?
>
> --Andy
>

_______________________________________________

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: 
 >NSView + NSScrollView, not scrolling (From: qvacua <email@hidden>)
 >Re: NSView + NSScrollView, not scrolling (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: My app thinks it is a phone. Why?
  • Next by Date: Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
  • Previous by thread: Re: NSView + NSScrollView, not scrolling
  • Next by thread: Re: NSView + NSScrollView, not scrolling
  • Index(es):
    • Date
    • Thread