• 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 design related question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core data design related question


  • Subject: Re: Core data design related question
  • From: Stamenkovic Florijan <email@hidden>
  • Date: Thu, 22 Oct 2009 16:06:06 -0400


On Oct 22, 2009, at 15:46, Marc Rink wrote:

This means i need the ObjectController in every view i want to have access to the connection parameters.

Yep, that seems right.

However, i am now troubling around: I set the value Binding of the Textfield to the object Controllers.selection.<value> in IB, however
i wont see the defaultvalue i have set in the model designer in Xcode. I already fiddled around with "Enabled" and "editable" bindings, but i didnt get it to work...?


Anyone able to point me in the right direction?

I am not sure exactly what should be happening as I never used an NSObjectController with CoreData fetching (normally use array and tree controllers). What gets fetched? One record? All records? No idea... However, this should all be fairly simple to track down...


1. Make sure your default value is actually getting set on new objects.
2. Check what the fetched content of the object controller is at the point in which you expect your connection info in it.
3. Check what the object controller's selection is at the same time.
...


This is one of those situations which should just work, unless you omit one of the myriad small steps necessary to get there. As such it's hard for anyone but you to find it. So check your assumptions one by one and experiment...

F
_______________________________________________

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 design related question (From: Marc Rink <email@hidden>)
 >Re: Core data design related question (From: Stamenkovic Florijan <email@hidden>)
 >Re: Core data design related question (From: Marc Rink <email@hidden>)

  • Prev by Date: Re: Core data design related question
  • Next by Date: re: Search on Core data Table issue?
  • Previous by thread: Re: Core data design related question
  • Next by thread: Search on Core data Table issue?
  • Index(es):
    • Date
    • Thread