• 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: Lots of Core Data Attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lots of Core Data Attributes


  • Subject: Re: Lots of Core Data Attributes
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 1 Jul 2005 04:24:40 -0400


On Jul 1, 2005, at 3:31 AM, Todd Yandell wrote:


On Jun 30, 2005, at 10:27 PM, mmalcolm crawford wrote:


You could instead define an Address entity and individual relationships for each address:


I'm convinced now that it's worth it do this with relationships. There's still a problem with this approach for me, though. That is that I'd like to do it all with an NSArrayController, with NSObjectController's representing the address relationships. This would work well if the address objects already existed when the user creates a new "person" object, but since they do not, all the user sees in the various address fields is "No Selection". At least, I assume that's what the problem is. I admit, I don't have a great amount of experience with bindings, but as far as I can tell, this is what's causing the problem. (Also, because I wasn't very clear in my original email, this is why I was wondering if I should just use attributes instead).


I think the best way to describe what's going on would be with an example project. If you have the time, I'd really appreciate it if you could take a look at the project at the link below and offer any advice you might have on fixing the "No Selection" problem.


    You mean in the mailing list and shipping labels part?

Those relationships aren't being created automatically.. you'd need to create those items and then insert them into the Person object when it's created

    look at awakeFromInsert:
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Lots of Core Data Attributes (From: Todd Yandell <email@hidden>)

  • Prev by Date: Re: Lots of Core Data Attributes
  • Next by Date: Re: Using gcc 2 on 10.4.1 with XCode 2.1. Confirmation request.
  • Previous by thread: Re: Lots of Core Data Attributes
  • Next by thread: Re: Lots of Core Data Attributes
  • Index(es):
    • Date
    • Thread