Re: NSPopupButton with NSArrayController
Re: NSPopupButton with NSArrayController
- Subject: Re: NSPopupButton with NSArrayController
- From: "I. Savant" <email@hidden>
- Date: Sat, 6 Jan 2007 18:15:37 -0500
Again, this is found in exactly the same document I've been
referring you to. Please READ THE DOCS.
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdCreateMOs.html#//apple_ref/doc/uid/TP40001654
--
I.S.
On Jan 6, 2007, at 5:50 PM, Ferhat Ayaz wrote:
ok. thanks again. I'm new to CoreData. I have another question. I
spent my past 2,5 hours to resolve this problem
(invoiceArrayController is a NSArrayController):
- (IBAction)makeInvoice:(id)sender
{
[invoiceArrayController add:self];
NSManagedObject *invoice = [what comes here? How can I get the
last inserted object????];
NSLog(@"Invoice nr: %@",[invoice valueForKey:@"nr"]);
}
best regards,
Ferhat
On Jan 6, 2007, at 11:25 PM, I. Savant wrote:
On Jan 6, 2007, at 5:12 PM, Ferhat Ayaz wrote:
I read the documentations. What I don't have understand is, if
you have an array with 2000 objects, for each ArrayController
must be allocated at least the pointers to the "contentobjects".
2000 additional pointers, am i right? I meant this allocation.
Re-read the docs, then, you missed something important. :-)
Specifically, the "Faulting" section here:
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdFaultingUniquing.html
Also re-read the "Faulting Behavior" section here:
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdPerformance.html#//apple_ref/doc/uid/TP40003468-SW2
Once you've finished that and you have time for more, re-read
the entire Core Data Programming Guide. It'll save you a lot of
headaches and wasted effort, believe me. I've read it six or seven
times, front to back, and I still have to reference it sometimes
when it's been awhile since I've touched on the subject.
--
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