• 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: Jerry Krinock <email@hidden>
  • Date: Sat, 24 Jan 2009 19:26:55 -0800


On 2009 Jan 24, at 15:51, Ulai Beekam wrote:

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.

I'm still confused about what you're having trouble with. But, inserting a managed object and selecting it in a table controlled by an array controller is a very standard design, like this...


http://developer.apple.com/samplecode/DepartmentAndEmployees/index.html

When you run that sample project, click "Add", fill in a name and you see your new Employee gets selected in the table. Just study how it's done there.

_______________________________________________

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


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: Nib memory management under Garbage Collection
  • Next by Date: Re: NSRunloop performSelector needs CFRunLoopWakeUp ?
  • 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