• 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
Core Data bindings question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data bindings question


  • Subject: Core Data bindings question
  • From: Darren Wheatley <email@hidden>
  • Date: Tue, 08 Feb 2011 00:46:18 +0000
  • Thread-topic: Core Data bindings question

Hi,

I have a Core Data app that displays data in a tableView with each column
bound to a field in a core data entity.

One field is called "active", and is of type BOOL

I box the BOOL for insertion into the Core Data store using [NSNumber
numberWithBool];

In the TableView I would like to bind the "enabled" property of each cell
to the "active" variable, so that if a record has "active" set to NO all
of the fields become read only.

When I try to bind the  enabled property I get the following error:

"cannot create BOOL from object of class __NSArray0"

Does anyone have any idea how I can achieve the desired result?

Regards

Darren.



_______________________________________________

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: Core Data bindings question
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: NSDrawer dealloc causes kCGErrorIllegalArgument
  • Next by Date: Re: Printing Appears Very Small in Lower-Left Corner of Page
  • Previous by thread: Re: NSDrawer dealloc causes kCGErrorIllegalArgument
  • Next by thread: Re: Core Data bindings question
  • Index(es):
    • Date
    • Thread