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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to