• 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
Mixing TableView Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mixing TableView Bindings


  • Subject: Mixing TableView Bindings
  • From: Joe <email@hidden>
  • Date: Wed, 3 Feb 2010 08:32:53 -0700

Hello,

I have a NSTableView with a column of checkboxes. I have the checkbox value bound to an NSInteger instance in a class which is in an array bound as the content to an array controller. When the program starts the column is filled with 16 rows and the checkbox is set to off. Other columns with bindings seem to work OK, but the checkbox column gives the error

 Cannot create BOOL from object (
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
) of class NSCFArray

This column is not bound to a core data managed object. The other columns are. I can get rid of this error if I remove the binding on the other columns that are bound to core data managed objects.

So, the question is can a TableView have columns where some columns are bound to core data managed objects and others to unmanaged objects? If not, then is there a way to prevent changes to a managed object from causing the document from being tagged as dirty and triggering the "Save" dialog when closing?

If mixed bindings are allowed, any idea what I am doing wrong?

Thanks




_______________________________________________

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: Mixing TableView Bindings
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: NSOutlineView parentobject
  • Next by Date: SourceView example
  • Previous by thread: Re: [ANN] CocoaHeads Paris group meeting
  • Next by thread: Re: Mixing TableView Bindings
  • Index(es):
    • Date
    • Thread