Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CD: Creating a managed object



On 28/05/2007, at 5:50 PM, mmalc Crawford wrote:


On May 27, 2007, at 11:01 PM, Ian Joyner wrote:
Or if this is a legitimate way of doing it, how do I get the right context to insert the managed object into?

Where does it come from here:

  [nsa insert: self];

...?

(Hint: <http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Classes/NSObjectController_Class/Reference/ Reference.html>)

Thanks, was getting late in the afternoon, and I went straight to NSController, missing NSObjectController.


I'm still curious as to whether this is the best way to do this (creating an NSManagedObject in a view) or if there is a more subtle way to set it up with bindings? I'm sure this must be a common thing to do, but haven't seen it in any sample code.

Ian
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >CD: Creating a managed object (From: Ian Joyner <email@hidden>)
 >Re: CD: Creating a managed object (From: mmalc Crawford <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.