• 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: Fetch request problem with core data relationship and NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: Fetch request problem with core data relationship and NSTableView
      • From: "Danny Callanan" <email@hidden>
References: 
 >Re: Fetch request problem with core data relationship and NSTableView (From: "I. Savant" <email@hidden>)
 >RE: Fetch request problem with core data relationship and NSTableView (From: "Danny Callanan" <email@hidden>)

  • Prev by Date: Re: Parsing Delimited Text in Cocoa
  • Next by Date: Re: Core Data Beginner Question
  • Previous by thread: RE: Fetch request problem with core data relationship and NSTableView
  • Next by thread: RE: Fetch request problem with core data relationship and NSTableView
  • Index(es):
    • Date
    • Thread