Re: Populating NSScrollView
Re: Populating NSScrollView
- Subject: Re: Populating NSScrollView
- From: Allan Odgaard <email@hidden>
- Date: Sat, 28 Feb 2004 08:17:42 +0100
On 28. Feb 2004, at 5:48, Matt Jaffa wrote:
to find out how to Populate a NSScrollView, I have a plist of rules
that is going to populate the NSScrollView
How to atleast add one item to NSScrollView, if not all at the same
time from the plist
The scroll view only contain one item, some NSView subclass.
So what you want to do is write an NSView which shows the items from
your plist, adjusting the height (using setFrameSize:) so that it
matches that of the combined items.
Now simply encapsulate that view subclass in a scroll view (can be done
from IB) -- and the scroll view will now show scroll bars if the view
is too big (and allow you to scroll around).
_______________________________________________
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.