• 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: using NSCell with NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using NSCell with NSOutlineView


  • Subject: Re: using NSCell with NSOutlineView
  • From: Gérard Iglesias <email@hidden>
  • Date: Sun, 24 Mar 2002 01:07:47 +0100

Subclass NSCell or something else, in fact you have to know that the NSBrowserCell display an image and a text in the same time very well, I use it for this kind of need in my outline view :

// set the data cell for the table column you want
[aTableColumn setDataCell:[[[NSBrowserCell alloc] init] autorelease]]


// While filling the cell, when you receive a message as the delegate that the tableview/outlineview will display the cell
[aBrowserCell setStringValue:aName];
[aBrowserCell setImage:anIcon];
[aBrowserCell setLeaf:YES];


Regards

On Saturday, March 23, 2002, at 11:55 PM, Gore wrote:

I would like to be able to use one or two cell(s) to display both a checkbox and a text field in the same table column. Like the outlineview in OmniOutliner. Do I have to use 2 NSCells to do this, and how do I implement them into the table view ?
Or can I use a NSButtonCell of checkbox type, but how do I then control both the title and the checkbox value of that cell? any examples on this is welcome...please help
_______________________________________________
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.
_______________________________________________
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: 
 >using NSCell with NSOutlineView (From: Gore <email@hidden>)

  • Prev by Date: Re: Rép : Cocoa's Popularity
  • Next by Date: Re: Rép : Cocoa's Popularity
  • Previous by thread: using NSCell with NSOutlineView
  • Next by thread: Beginner Questions
  • Index(es):
    • Date
    • Thread