General Category > General Discussions

mmBusinessObject update

(1/1)

rtamesis:
On Xcode 7, I'm getting a warning that says" 'init' is deprecated in iOS 9.0 - Use -initWithConcurrencyType: instead" in the mmBusinessObject.m file. Do you have a more update-to-date version of it? Thanks!

kjmcneish:
Yes, I have attached it to this message!

All the best!
Kevin

rtamesis:
Thanks! I still haven't made the transition to Swift yet, so I had to compare the Swift code to the Objective C one and changed the line
--- Code: ---_managedObjectContext = [[NSManagedObjectContext alloc] init];
--- End code ---
to
--- Code: ---_managedObjectContext = [[NSManagedObjectContext alloc] initWithConcurrencyType:NSMainQueueConcurrencyType];
--- End code ---
I haven't gotten any errors yet, so I hope that's correct.

Navigation

[0] Message Index

Go to full version