• 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
Checkbox Mayhem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Checkbox Mayhem


  • Subject: Checkbox Mayhem
  • From: "Frank D. Engel, Jr." <email@hidden>
  • Date: Sun, 18 Dec 2016 06:41:55 -0500

Hoping this is something simple that is simply escaping me at the moment...


I a view-based table with two columns containing checkboxes.

The table has its content property bound to an array controller's arrangedObjects, with that array controller being tied to entities in Core Data.

The checkboxes are each bound to Table Cell View.objectValue.something (let's say one of them is bound to "a" and the other to "b"), where those are properties of the entity.

Left like that, everything was working.

However, I want one of the checkboxes to be disabled when the other one is checked.

To do this, I tried what I thought was obvious: I bound the Enabled property of the checkbox bound to "a" to Table Cell View.objectValue.b - since I already had data populated, on the surface, this seemed to work right upon launch - however:

Changing the checkbox bound to "b" does not change the enabled state of the one for "a", and does not seem to get saved (this is a NON-document-based application) - when I relaunch the application, the checkbox is back to where it was before I exited. I can create new rows in the table (new objects tied to the entity), and that works just fine, but checking the boxes does not have any permanent effect.


This is on Mac OS X 10.10.5.

What am I missing here?



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Checkbox Mayhem
      • From: "Frank D. Engel, Jr." <email@hidden>
  • Prev by Date: Is it safe to assume that viewDidLoad() is only ever called once on iOS 8.0+?
  • Next by Date: Re: Checkbox Mayhem
  • Previous by thread: Re: Is it safe to assume that viewDidLoad() is only ever called once on iOS 8.0+?
  • Next by thread: Re: Checkbox Mayhem
  • Index(es):
    • Date
    • Thread