• 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: NSCell and IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCell and IB


  • Subject: Re: NSCell and IB
  • From: "Erik M. Buck" <email@hidden>
  • Date: Mon, 17 Sep 2001 18:11:33 -0500

For information about custom NSCell subclasses, see:
http://www.stepwise.com/Articles/Technical/NSCell.html

You do not have to use a NSMatrix and NSCells. You can put any view in a
scroll view. If you want, you can create a custom view containing other
views and put the custom view in a scroll view. That way you can draw
anything you want.

For example:
1) in IB create a box containing all of the controls that you want.
2) Create a custom subclass of NSView that has an outlet connected to the
box containing the controls.
3) Implement that custom view so that it copies the box any number of times,
adds the copies as subviews, and tiles them appropriately by setting their
frame origins. Make sure that the view adjusts its own frame and bounds to
make room for all the subviews.
4) In IB, group your custom view in a scroll view.

This is the heavy weight solution, but it is more general.

----- Original Message -----

References: 
 >Re: NSCell and IB (From: Scott Herz <email@hidden>)
 >Re: NSCell and IB (From: Robert Goldsmith <email@hidden>)

  • Prev by Date: Re: Math/Theory Questions about PostScript-style drawing
  • Next by Date: Re: How to add delegate to my application
  • Previous by thread: Re: NSCell and IB
  • Next by thread: Re: NSCell and IB
  • Index(es):
    • Date
    • Thread