• 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 20:11:48 -0700

On Sat, Jul 25, 2009 at 7:59 PM, Pierce
Freeman<email@hidden> wrote:
> I'm not quite sure if I'm over riding -drawRect:, but it's possible that I
> have.  Hopefully my code will see if I have.

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.  If
you have written a subclass of NSView and implemented the -drawRect:
method, and this is the view you're asking about, the answer is yes.
Otherwise, it is 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.

I recommend first going over some Cocoa fundamentals again.  Then move
on to the View Programming Guide.

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

  • Prev by Date: Re: NSScrollView Not Updating
  • Next by Date: Re: I need a milder application badge (solution)
  • Previous by thread: Re: NSScrollView Not Updating
  • Next by thread: Re: NSScrollView Not Updating
  • Index(es):
    • Date
    • Thread