I am a beginner programmer and I am targeting OSX. I want to create a reference to the managed object context property thats inside AppDelegate, to use it in a Core Data project I'm creating
I try
let appDelegate = UIApplication.sharedApplication().delegate as AppDelegate
let aVariable = appDelegate.someVariable
or make it mutable, typing var instead of let. Can anyone give me some help, please?
Thanks