Re: Fetch request problem with core data relationship and NSTableView
Re: Fetch request problem with core data relationship and NSTableView
- Subject: Re: Fetch request problem with core data relationship and NSTableView
- From: "I. Savant" <email@hidden>
- Date: Fri, 15 Jun 2007 11:05:50 -0400
I have an array controller bound to the managedObjectContext. Each NSTableColumn of the NSTableView from the interface is bound to the underlying model via the controller. I have an 'add' button that is similarly bound to the controller.
So you're not creating/inserting in code, you're relying on the
array controller ...
| 4 - What happens if you force your array controller to -fetch:
|after you create your Charge instance?
What would be the best approach to doing this?
... by wiring your "add" button to a custom action method, then
sending -add: then -fetch: to the array controller.
BUT, since you're relying on the array controller's -add: method
directly this should not be producing the results you described, so
even if sending a manual -fetch: resolves this problem, the cause
remains a mystery and so does any possible hidden side-effects. I say
this because I've never seen this behavior before and it seems wrong.
Very very wrong.
I suggest reproducing a small test case outside your own project and
see if you get the same results. I'm betting you won't. If you do,
post that test case somewhere for the list to take a look. If you
*don't* get the same results with a small test case, then you can
compare/contrast with your actual project and see what you're doing
differently.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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