• 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: NSScrollView Not Updating
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSScrollView Not Updating


  • Subject: Re: NSScrollView Not Updating
  • From: Kyle Sluder <email@hidden>
  • Date: Sat, 25 Jul 2009 19:41:07 -0700

On Sat, Jul 25, 2009 at 7:30 PM, Pierce
Freeman<email@hidden> wrote:
> I am drawing elements dynamically to the screen, and attempting to put them
> in a NSScrollView.  However, when I add them to the view inside the
> NSScrollView, it doesn't seem as if the scroll view knows that there is more
> contents.  The elements simply go off of the top of the window, and it
> doesn't show any scroll bars which tells me that it doesn't think that there
> is any more elements.  Could anyone tell me why this is happening, because I
> just can't figure it out.

You need to post your code.

It sounds like you've overridden -drawRect: to draw custom contents.
The view's frame determines how the scroll view behaves; if you're
just drawing all over the place in -drawRect: without properly calling
-setFrame:, you need to stop that.

--Kyle Sluder
_______________________________________________

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: NSScrollView Not Updating
      • From: Pierce Freeman <email@hidden>
References: 
 >NSScrollView Not Updating (From: Pierce Freeman <email@hidden>)

  • Prev by Date: NSScrollView Not Updating
  • Next by Date: Re: NSScrollView Not Updating
  • Previous by thread: NSScrollView Not Updating
  • Next by thread: Re: NSScrollView Not Updating
  • Index(es):
    • Date
    • Thread