magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.79k stars 1.79k forks source link

MagicalRecord with bindings #355

Closed DigitalRogues closed 11 years ago

DigitalRogues commented 11 years ago

Anyway to use MR with OS X bindings? I can't seem to find a way to connect the nsarraycontroller to the MR_defaultContext.

Thanks.

tonyarnold commented 11 years ago

The best way to handle this is to expose [NSManagedObjectContext MR_defaultContext] via a property or method on your controller class, so that the NSArrayController can address it by name.

DigitalRogues commented 11 years ago

I tried that out but now I run into the error 'Cannot perform operation without a managed object context'

It may be related to the nsarraycontrollers content outlet not being set correctly think.

Thanks.

tonyarnold commented 11 years ago

Have you setup MagicalRecord when your application starts (before this NSArrayController is ever created)?

tonyarnold commented 11 years ago

I’m closing this issue due to a lack of activity. Please feel free to re-open it if you would like further information or assistance.