NSView subclassing question
NSView subclassing question
- Subject: NSView subclassing question
- From: Chris Backas <email@hidden>
- Date: Sat, 23 Mar 2002 23:32:59 -0500 (EST)
- Priority: Normal
Hello all,
I'm about to write my first custom view, but there's a detail about it that I can't seem to figure out from any of the examples. I understand the basics pretty well I think, but all the examples show a view as a subview of,
say, a window's content view. The sample view's size is always determined by the size of the window in this case.
I have a view which needs to display X number of items, and I don't know how big the view will be until I find out how many X is in each case. I'm going to be placing this view inside of a Scroll View so that it can fit
logically inside of a window without making the window weird sizes of course =) Anyway, the thing I don't understand is, when I'm a subview of an NSScrollView (or, really the NSClipView), how do I 'tell' it how big my
view happens to be? What's the proper way to interact with the NSClipView, and how does it interact with me?
I've been looking through the documentation, and the Hillegas book, but they don't seem to get into it enough for me to understand. All the examples of being inside a Scoll View that I've seen are just showing me a
fixed-size "client" view.
Thanks for your time
Chris Backas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.