• 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
CoreData and ArrayControllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreData and ArrayControllers


  • Subject: CoreData and ArrayControllers
  • From: Steve Cronin <email@hidden>
  • Date: Tue, 16 Jun 2009 04:13:53 -0500

Folks;

Using 10.5 SDK deploying to 10.4 on an Intel 10.5.7 machine running XC 3.1.2

I have a Core Data model against which I have successfully loaded data.

Now I want to display some data in a tableView - so I drag a stock arrayController from IB onto a window.

I set the Mode to 'Entity' and state the Entity name and check 'Prepares Content' (not 'Laxy' - not supported on 10.4)
No FetchPredicate - I'm just trying to build up incrementally...
I bind the controller's ManagedObjectContext to the windowController's exposed manageObjectContext
Hook up a tableView with one column to display some data from the controller,
Compile - no errors


Crashes immediately after the windowControllers -awakeFromNib with this stack:
#0 0x92aa1e17 in objc_exception_throw
#1 0x92fd6e8b in +[NSException raise:format:arguments:]
#2 0x92fd6eca in +[NSException raise:format:]
#3 0x937b4019 in -[_NSManagedProxy _managedObjectContext]
#4 0x937b404a in -[_NSManagedProxy _persistentStoreCoordinator]
#5 0x937b40d8 in -[_NSManagedProxy _entity]
#6 0x937b421e in -[_NSManagedProxy usableSortDescriptorsFromArray:]
#7 0x936568d2 in -[NSArrayController(NSManagedController) defaultFetchRequest]
#8 0x937b3a98 in -[NSObjectController(NSManagedController) _executeFetch:didCommitSuccessfully:actionSender:]
#9 0x938e3032 in _NSSendCommitEditingSelector
#10 0x936c9d78 in -[NSController _controllerEditor:didCommit:contextInfo:]


Core Data is up and running by the end of the windowController's - awakeFromNib.

If I remove the controller - everything is fine.
If I simply uncheck 'Prepares Content' the application will launch but there is no data shown in the tableView.


What am I not seeing here?
Steve
_______________________________________________

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


  • Prev by Date: Float Seconds?
  • Next by Date: Re: Float Seconds?
  • Previous by thread: Re: Float Seconds?
  • Next by thread: Re: CoreData and ArrayControllers
  • Index(es):
    • Date
    • Thread