• 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: NSButtonCell's within NSCell's within NSTableView's and mouse tracking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSButtonCell's within NSCell's within NSTableView's and mouse tracking


  • Subject: Re: NSButtonCell's within NSCell's within NSTableView's and mouse tracking
  • From: Michael Hudson <email@hidden>
  • Date: Fri, 24 Oct 2003 14:35:43 +0100

"John C. Daub" <email@hidden> writes:

> Hello.
>
> I've got some complex data to display in an NSTableView, so it's been
> suggested to me to take the route of embedding NSCell's within an NSCell,
> then putting that "master" NSCell into the NSTableView's column. Generally
> speaking this works out ok, but I'm hitting some snags.

I had a go at this a week or so back.

> So all of this makes me wonder... is this the way to go? Should I be
> faking things out with NSCell's embedded within an NSCell? Or would
> it be better to actually try to put real NSView's and NSButton's
> into the NSTableView? Can that be done? If so, what are the pros and
> cons of such an approach?

What I ended up doing was creating a view that looked like I wanted
each row to look in IB, and inserting enough of these into a custom
view in a scroll view (with flipped coordinates, to keep me sane).

Seemed to work, but I don't know if it's the best solution. I had a
fairly small number of rows, I'd guess my solution would use a lot of
memory if you had hundreds or thousands of rows.

Cheers,
mwh

--
Gevalia is undrinkable low-octane see-through only slightly
roasted bilge water. Compared to .us coffee it is quite
drinkable. -- Mens Nilsson, asr
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSButtonCell's within NSCell's within NSTableView's and mouse tracking
      • From: "John C. Daub" <email@hidden>
References: 
 >NSButtonCell's within NSCell's within NSTableView's and mouse tracking (From: "John C. Daub" <email@hidden>)

  • Prev by Date: Re: unconnected TextFields
  • Next by Date: Panther's Mail bundle?
  • Previous by thread: NSButtonCell's within NSCell's within NSTableView's and mouse tracking
  • Next by thread: Re: NSButtonCell's within NSCell's within NSTableView's and mouse tracking
  • Index(es):
    • Date
    • Thread