• 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: Pierce Freeman <email@hidden>
  • Date: Sun, 26 Jul 2009 09:20:40 -0700
  • Thread-topic: NSScrollView Not Updating

> If you can't answer this question, you need to cover some basic
> fundamentals.  "Did you override -drawRect:" is a very simple question
> that you can answer by simply looking at what code you've written.

I kind of figured that I didn't do it, as I didn't write any code that would
have caused this to happen.  But I wasn't sure if it maybe was doing
something "behind the scenes" that caused it to be implemented.  Based upon
your answer, it's a "no".


>>            [subView addSubview:text1];
>
> When you add a subview to a superview, it doesn't resize the
> superview.  NSScrollView has no idea about the contents of its
> document view's subviews, it only cares about its document view's
> size.  Since it never changes, there's nothing for it to scroll.

That makes a lot of sense.  So I called setFrame: on the NSView, and it
works really well now.  However, when I enlarge the window, the top element
seems to come down.  Is there some way to stop this from happening, in other
words, is there a way to "nail" an element in place.


_______________________________________________

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: Dave Keck <email@hidden>
References: 
 >Re: NSScrollView Not Updating (From: Kyle Sluder <email@hidden>)

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