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

NSScrollView problem


  • Subject: NSScrollView problem
  • From: Shrinivasa Kini <email@hidden>
  • Date: Mon, 19 Sep 2005 19:11:11 -0700

Hi all,

I have an object of NSScrollView in my window and the ScrollView embeds a
custom view. My custom view is larger that the NSScrollView frame size and I
want the vertical scroller to be at the top when the window loads.

I use the following command in "windowDidLoad" delegate method in the
windowController code, to set the vertical scroller to the top-
[[myScrollView documentView] scrollPoint:NSMakePoint(0.0, [[myScrollView
documentView]
bounds].size.height)];

Unfortunately it doesn't work here. However, if I include the same statement
say on the action of a button on my window, it works fine.

Any clue as to why the same message to the scrollview's clipview does not
respond when I include it in windowDidLoad?

Thanks,
Shrini
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Finding Jars - Class not found
  • Next by Date: NSArrayController and validating menu items
  • Previous by thread: Finding Jars - Class not found
  • Next by thread: NSArrayController and validating menu items
  • Index(es):
    • Date
    • Thread