• 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: Core Data Bindings. weird behavior.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Bindings. weird behavior.


  • Subject: Re: Core Data Bindings. weird behavior.
  • From: Sandro Noel <email@hidden>
  • Date: Wed, 13 Aug 2008 19:08:43 -0400

Quincey
Again thank you!

I did just that, 12 seconds before receiving your mail, so i'm glad i'm not totaly lost:)
but the value still get's changed wrong, instead of changing the relationship object it changes the display name of that object.


transactionType.name

I've tried to have the column value set to transactionType, but the I get
*** -[NSManagedObject copyWithZone:]: unrecognized selector sent to instance 0x155987b0
Grrr...


so i guess I should focus on trying to get it to change the relationship object instead of it's display name.
is there a way to do that with bindings, or will i have to do it manually ?


Thank you !
Sandro,


On 13-Aug-08, at 6:37 PM, Quincey Morris wrote:

On Aug 13, 2008, at 15:19, Sandro Noel wrote:

the colums is bound with Value, transaction.transactiontype.name
the combo box is content bound to a array controller that manages the items i want to choose from in the combo box. as content values (transactionTypes) name.


Try this:

Set the column's "content" binding to the transaction types array controller, controller key "arrangedObjects", model key blank or "self".

Set the column's "contentValues" binding to the transaction types array controller, controller key "arrangedObjects", model key "field1".

Set the column's "value" binding to the transactions (not transaction types) array controller, controller key "arrangedObjects", model key "transactionType.field1".

Don't bind the combo box cell's bindings to anything -- that's done automatically for you every time the cell is used.


_______________________________________________

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

_______________________________________________

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


References: 
 >Core Data Bindings. weird behavior. (From: Sandro Noel <email@hidden>)
 >Re: Core Data Bindings. weird behavior. (From: Quincey Morris <email@hidden>)
 >Re: Core Data Bindings. weird behavior. (From: Sandro Noel <email@hidden>)
 >Re: Core Data Bindings. weird behavior. (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: NSTypesetter layoutParagraphAtPoint:
  • Next by Date: Re: Accessing memory of another application?
  • Previous by thread: Re: Core Data Bindings. weird behavior.
  • Next by thread: Re: Core Data Bindings. weird behavior.
  • Index(es):
    • Date
    • Thread