• 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 columns in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSButtonCell columns in NSOutlineView


  • Subject: Re: NSButtonCell columns in NSOutlineView
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 15 Aug 2005 09:08:38 -0700

Hi Marcus,

On Aug 15, 2005, at 12:43 AM, Marcus Roberts wrote:

However, to make the outline view look better, rather than a column of text and a column of checkboxes, I'd like to have a single column. I think I can do this by binding the selected key to the value binding of the buttoncell, and the text to the title binding of the button cell. If I click the small triangle in the column header, it switches over to a set of bindings that include these two bindings.

The problem is I can't bind the same values here as I can in the
normal bindings - an error is returned that an NSControllerTreeProxy
object is not key value coding-compliant for the key selected.

I gave this a try (in Tiger) and it seems to work correctly. However, it won't work the way you expect it to. One cell is shared for each table column. Therefore, binding anything to it will always display the same value in every column of that cell. Hopefully that makes sense -- if not, let me know and i can explain further.


To do what you want, you will probably have to handle the willDisplayCell: delegate method for tableview and setup the cell each time before it is being displayed by accessing your array controller (in code).


I only discovered the action of the little triangle by chance on Google. Could anyone explain what it's supposed to do, or have any suggestions as to why the bindings work differently here.


The triangle allows you to edit properties of the cell for that table column
--corbin
_______________________________________________
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: NSButtonCell columns in NSOutlineView
      • From: Marcus Roberts <email@hidden>
References: 
 >NSButtonCell columns in NSOutlineView (From: Marcus Roberts <email@hidden>)

  • Prev by Date: Re: Can't End A Process
  • Next by Date: Re: path name from Apple Event
  • Previous by thread: NSButtonCell columns in NSOutlineView
  • Next by thread: Re: NSButtonCell columns in NSOutlineView
  • Index(es):
    • Date
    • Thread