Re: "No Selection", NSObjectController & CoreData
Re: "No Selection", NSObjectController & CoreData
- Subject: Re: "No Selection", NSObjectController & CoreData
- From: Thom Meijer <email@hidden>
- Date: Tue, 4 Oct 2005 04:54:59 +0200
YES! Thank you, thank you so much! All nice people here, thank you as well!
This is exactly what I was looking for. I can not help myself but it feels
quite strange to me that also NSObjectController needs the one and only
object to be added. In case of NSArrayController I pretty get it but with
*object* controller....anyway!
So just for archive purpose, I put a button to my interface in IB,
control-dragged from it to NSObjectController, in action pane connected
add:.
And, in Bindings pane, for every text field's value > no selection
placeholder: I just filled in something like "Hit the init button".
Once again, thank you very much!
On 10/4/05, Andre <email@hidden> wrote:
>
> You can add it in code or add a button to the window and connect it
> to the object controller and connect it to the add: method.
> Click the add: button and the controller will make and object for the
> selection.
> I think thats what your looking for?
>
> Hope it helps.
>
> On 17/10/03, at 18:19, Thom Meijer wrote:
>
> > Now I understand! Thank you!
> > So as far as I can see the big question is: can I do this within IB or
> > should I dive into code and do it programmatically?
> >
> > On 10/4/05, Chris Hanson <email@hidden> wrote:
> >
> >>
> >> On Oct 3, 2005, at 3:26 PM, Thom Meijer wrote:
> >>
> >>
> >>> I quickly started to model once again, one entity, two attributes,
> >>> set the
> >>> attributes' types, option-drag my entity box from schematic view in
> >>> modeler
> >>> to opened window in IB, "one object" - wow, it is really all there!
> >>> nice
> >>> technique, thank you, i'll remember it.
> >>> unfortunately, there is still "no selection" there.
> >>>
> >>
> >> That's because your object controller doesn't have a selected
> >> object. A managed object is not created for you automatically when
> >> you create an IB interface for a model, or when you create a Core
> >> Data application. Instead, you need to create a managed object
> >> somewhere and set it as your object controller's selection before it
> >> can be manipulated by the interface bound through that object
> >> controller.
> >>
> >> -- Chris
> >>
> >>
> >>
> > _______________________________________________
> > MacOSX-dev mailing list
> > email@hidden
> > http://www.omnigroup.com/mailman/listinfo/macosx-dev
> >
>
>
_______________________________________________
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