• 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: NSPopupButton with NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSPopupButton with NSArrayController
      • From: Ferhat Ayaz <email@hidden>
References: 
 >NSPopupButton with NSArrayController (From: Ferhat Ayaz <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: "I. Savant" <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: Ferhat Ayaz <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: "I. Savant" <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: Ferhat Ayaz <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: "I. Savant" <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: Ferhat Ayaz <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: "I. Savant" <email@hidden>)
 >Re: NSPopupButton with NSArrayController (From: Ferhat Ayaz <email@hidden>)

  • Prev by Date: Re: NSPopupButton with NSArrayController
  • Next by Date: Making a new app - Need Implementation Advice.
  • Previous by thread: Re: NSPopupButton with NSArrayController
  • Next by thread: Re: NSPopupButton with NSArrayController
  • Index(es):
    • Date
    • Thread