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

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.


References: 
 >Populating NSScrollView (From: Matt Jaffa <email@hidden>)

  • Prev by Date: Re: NSTableView - Responder - 'Focus'
  • Next by Date: Re: Array Operators & array controllers
  • Previous by thread: Populating NSScrollView
  • Next by thread: Getting the view that spawned a menu
  • Index(es):
    • Date
    • Thread