• 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
NSCells embedded in NSCell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCells embedded in NSCell?


  • Subject: NSCells embedded in NSCell?
  • From: Dan Donaldson <email@hidden>
  • Date: Fri, 15 Sep 2006 09:52:33 -0400

What are the basics of embedding multiple NSCells in a containing NSCell?

I need to place a multiline text object, with a popupbutton at the top in a cell. The behaviour of each of the two Cell objects is pretty standard, but they need to be contained in a single cell of an NSOutline.

I'm assuming I override drawInteriorWithFrame: inView: . But in that case, how do I actually embed the NSCells? Do I set up a set of bounding rectangles, and then -- what? Can't find any examples of NSCells contained by an NSCell, but it's been suggested to me that this is the way to do it.

Just to head it off, I'm trying to avoid having two separate cells for this. Obviously, recreating an NSPopupButton is too much to do, but would the other option be to add a text field to a subclass of it? This wasn't what I thought of first, because the cell may eventually have to have further, complex NSCell type objects in it, so it would be only deferring pain....

any suggestions/sample code sources?

TIA

Dan Donaldson
dan[i'm at]omnivore[little black mark]ca



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSCells embedded in NSCell?
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: determine if Dashboard is active...
  • Next by Date: Re: Mixing Chinese and Japanese text
  • Previous by thread: Re: Mixing Chinese and Japanese text
  • Next by thread: Re: NSCells embedded in NSCell?
  • Index(es):
    • Date
    • Thread