• 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
Displaying a checkbox (NSButton) alongside text in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Displaying a checkbox (NSButton) alongside text in NSOutlineView


  • Subject: Displaying a checkbox (NSButton) alongside text in NSOutlineView
  • From: Tim Hewett <email@hidden>
  • Date: Fri, 17 Oct 2003 17:49:11 +0100

Hi,

I'm trying to create a NSOutlineView column which has a checkbox
alongside some text in a particular column, in the same way as iTunes
does in a play list in the song name column. I've been basing my code
on the DragNDropOutlineView example on the developer CD, setting
the table column cell to my own custom class based on the ImageAndTextCell
class in the above example code. I'm having a few problems adapting
this class to contain a NSButton instead of a NSImage, I get the string
displayed but not the button - I had to comment out the
[NSImage compositeToPoint:operation:] method call as there is no
equivalent for NSButton.

Anyone know of an example of this being done, either for a NSOutlineView
or NSTableView (since they are very similar)? Any hints anyone?

Tim.
_______________________________________________
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.

  • Prev by Date: Re: Trapping insert nil value into dictionary?
  • Next by Date: Re: Trapping insert nil value into dictionary?
  • Previous by thread: How to get system version?
  • Next by thread: Re: Displaying a checkbox (NSButton) alongside text in NSOutlineView
  • Index(es):
    • Date
    • Thread