Re: CoreData/Bindings : adding/updating records with 2 entities at the same time
Re: CoreData/Bindings : adding/updating records with 2 entities at the same time
- Subject: Re: CoreData/Bindings : adding/updating records with 2 entities at the same time
- From: Luc Vandal <email@hidden>
- Date: Mon, 27 Aug 2007 20:49:23 -0400
On 27-Aug-07, at 7:37 PM, mmalc crawford wrote:
On Aug 27, 2007, at 4:29 PM, Luc Vandal wrote:
What I want to be able to do is to create a new Email record and
add a related Attachment record at the same time, in the same window.
How are you creating the new Email record? Create an Attachment
and set the relationship at the same time.
I'll be adding the new Email record by calling the add: method from
NSObjectController within a window that contains text fields.
However, I realize that it seems that I can't use NSTextField to add
a new object. If I call add:, nothing happens. Do I absolutely need a
NSTableView to add objects?
If you're using bindings to create the record, review <http://
developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/
Classes/NSObjectController_Class/Reference/Reference.html>.
mmalc
Software
& Web Apps
Luc Vandal
Edovia Inc.
Montreal
514.377.8111
email@hidden
www.edovia.com
_______________________________________________
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