• 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
Enabling dataCells with bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Enabling dataCells with bindings


  • Subject: Enabling dataCells with bindings
  • From: John Lombardo <email@hidden>
  • Date: Fri, 7 May 2004 17:03:15 +0800

Okay, I've almost got the hang of this binding business, though the Key Paths are still messing with me.

I have a table with two columns...
one, with the identifier @"enabled" contains checkboxes.
the other, with the identifier @"operator" contains popup buttons

The idea is that if a checkbox is selected or deselected (this part works fine) then the popup button should enable or disable accordingly. I would have thought that something like this would do the job:

[[[fieldsTable tableColumnWithIdentifier:@"operator"] dataCell]
bind:@"enabled"
toObject: fieldController
withKeyPath:@"arrangedObjects.enabled.@boolValue"
options:nil];

It is my belief that due to my inexperience with defining key paths, I am in fact just inventing things and making a complete arse of it. Does this sound about right?

Cheers,
john
_______________________________________________
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: Enabling dataCells with bindings
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: Adding Document Types Programmatically
  • Next by Date: Resize NSMatrix
  • Previous by thread: Re: Tab to NSButtons as nextKeyView
  • Next by thread: Re: Enabling dataCells with bindings
  • Index(es):
    • Date
    • Thread