• 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: Creating a managed object without adding it to the context?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a managed object without adding it to the context?


  • Subject: Re: Creating a managed object without adding it to the context?
  • From: Andreas Mayer <email@hidden>
  • Date: Sun, 25 Jan 2009 08:39:52 +0100


Am 25.01.2009 um 00:51 Uhr schrieb Ulai Beekam:

My problem is that when I add directly to the managed object context, the item is not getting selected automatically in the array controller (by the way, I see the selection visually by means of the table view bound to the array controller) even if I have checked the "select on insert" checkbox on the array controller in Interface Builder.

IIRC that happens when you insert the object directly into the managed object context without going through the array controller.


I.e. by using NSManagedObject's

-initWithEntity:insertIntoManagedObjectContext:

instead of NSArrayController's

-addObject:

That's why I asked about this. But yes, when I come to think about it now as you say it, it kind of makes little sense to be creating a managed object that is not in the context.

I beg to differ. :) See my previous post.


Andreas _______________________________________________

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


  • Follow-Ups:
    • RE: Creating a managed object without adding it to the context?
      • From: Ulai Beekam <email@hidden>
References: 
 >Creating a managed object without adding it to the context? (From: Ulai Beekam <email@hidden>)
 >Re: Creating a managed object without adding it to the context? (From: Jerry Krinock <email@hidden>)
 >RE: Creating a managed object without adding it to the context? (From: Ulai Beekam <email@hidden>)

  • Prev by Date: Re: Creating a managed object without adding it to the context?
  • Next by Date: Re: addSubview bottleneck
  • Previous by thread: Re: Creating a managed object without adding it to the context?
  • Next by thread: RE: Creating a managed object without adding it to the context?
  • Index(es):
    • Date
    • Thread