> 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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
