Re: NSArrayController (or NSObjectController) in Entity Mode
Re: NSArrayController (or NSObjectController) in Entity Mode
- Subject: Re: NSArrayController (or NSObjectController) in Entity Mode
- From: "Kevin" <email@hidden>
- Date: Thu, 6 Sep 2007 19:39:01 +0000
- Importance: Normal
- Sensitivity: Normal
Andrew,
I posted this same issue back in February. I never got it fully working.
In my case, a NSObjectController set to be in Entity mode in a nib file behaved differently than an identical one created in code.
Besides the misleading description you mentioned, the controller would not register as an editor with the managed context when a text field bound to the controller began editing.
I wanted this to work to ensure that changes made in the text field were persisted when the managed context were saved without leaving the text field. My workaround for this was to set the first responder to nil anytime the managed context was saved.
Sent via BlackBerry by AT&T
-----Original Message-----
From: Andrew Kimpton <email@hidden>
Date: Thu, 06 Sep 2007 15:05:01
To:mmalc crawford <email@hidden>
Cc:email@hidden
Subject: Re: NSArrayController (or NSObjectController) in Entity Mode
Quoting mmalc crawford <email@hidden>:
>
> On Sep 2, 2007, at 10:41 AM, Andrew Kimpton wrote:
>
>> I'd like to programmatically create an NSArrayController that
>> fetches a specific entity from my Managed Object Context.
>> [...]
>> However if I get the description of the
>> mFutureRecordingsArrayController in gdb it says :
>> Printing description of mFutureRecordingsArrayController:
>> <NSArrayController: 0x3ee2d0>[object class: NSMutableDictionary,
>> number of selected objects: 0]
>>
> The description is misleading if the controller was not created in IB.
> Is the controller not working in any other way?
Ahhh.... having seen the bad description I 'gave up' and didn't pursue
things further. Debugging bindings is tricky enough - 'knowing' I had
a bad controller didn't inspire me with any confidence to proceed
further.
I'll replace the IB reated Controller with one created in code and
'just see what happens'.
Does anyone recall if this misleading description logged as a bug ? If
not I'll write it up.
> mmalc
Andrew 8-)
_______________________________________________
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
_______________________________________________
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