NSScrollView problem
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