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: refreshing core data controller



On May 30, 2007, at 7:43 AM, Pavel Hlavnicka wrote:

My UI is refreshed fine but I'm having problems to access values via -[NSArrayController arrangedObject] right after I call reset on the managed context - arrangedObjects returns just an empty array.

It sounds like you're trying to treat your NSArrayController as part of your model. You should use Core Data directly -- execute fetch requests against your managed object context and so on -- from within model code. NSObjectController and its subclasses are intended to mediate between your model and your view layers, not to provide a way to manipulate your model directly.


  -- Chris

_______________________________________________

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: 
 >refreshing core data controller (From: Pavel Hlavnicka <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.