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

Core Data Bindings. weird behavior.


  • Subject: Core Data Bindings. weird behavior.
  • From: Sandro Noel <email@hidden>
  • Date: Tue, 12 Aug 2008 23:10:42 -0400

Greetings.	

I'm having a weird behavior with the bindings and core data.
i'm sure it's the way the bindings are set that causes my problem but i can not find the answer.
so i'll ask you guy's :)


I have these entities, with these attributes and relationships.

entity: Transactions
attributes: field1, field2
relationship : transactionType

entity: TransactionTypes
attributes: field1, field2
relationship : transaction

In interface builder I have two array controller bound to these entities,
the tableview columns are bound to the field1 and field2 and transactionType


the transaction type is bound to a column in the table view with the keypath, transactionType.field1
witch displays the name of the transaction type properly.
if i set it to just transactionType, i get a crash, i guess because it's a relationship...


now, in the transactionType column the cell is a combo box, bound to transactionTypes array. witch gives me
a drop down list of all the transaction Types available.


the problem i get is that if i select a value from that list,
all the transactions that were of the same type of the one i am trying ti change
get changed as well, not just the one row I am trying to change.


So let's say i have 15 transactions of type DEBIT and i change the first one ot CREDIT, all the 14 other ones get changed along with it....

does this make any sense?

Sandro.
thank you again.!
_______________________________________________

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. weird behavior.
      • From: Quincey Morris <email@hidden>
  • Prev by Date: NSTypesetter layoutParagraphAtPoint:
  • Next by Date: Re: Should I retain a variable returned from this accessor?
  • Previous by thread: Re: NSTypesetter layoutParagraphAtPoint:
  • Next by thread: Re: Core Data Bindings. weird behavior.
  • Index(es):
    • Date
    • Thread