1. CONCURRENT NETWORKING
– MADE EASY!
CocoaHeads Stockholm, March 5 2012
MARTHIN FREIJ / AMAZING APPLICATIONS
2.
3. AMAZING APPLICATIONS / IN SHORT
A two-man army of digital production
veterans, on a crusade to delight people
with pixel perfect design, delicate code
and stunning user experiences.
We work hard to ensure that everything
from concept and user interaction design
to animations and technical
implementation is as sleek as possible.
4. MARTHIN FREIJ / SENIOR DEVELOPER JIMMY POOPUU / ART DIRECTOR
Has written million lines of code as a A tech savvy pixel pusher and design geek
software developer and held countless with over 15 years of experience working
lectures as technical trainer during the with global brands in digital channels.
past 10 years for clients in the bank, Also a confused father and a avid gamer.
finance and media sector.
CLIENT SHORT LIST:
CLIENT SHORT LIST: Vin & Sprit (Absolut Vodka & Malibu Rum), IKEA,
ICA Banken, Handelsbanken, Bonnier, Dagens Scania, Electrolux, Nokia, SCA (Libresse)
Nyheter, Dagens Industri
29. IMPORT DATA EXAMPLE (1 / 2)
☞ Set your main context to execute on Main Queue
(NSMainQueueConcurrencyType)
☞ Create an import context and tell Core Data to create a new
queue for it (NSPrivateQueueConcurrencyType)
☞ Set the main context as the import contexts parentContext
30. IMPORT DATA EXAMPLE (2 / 2)
☞ On the import context, call performBlock and do the import (i.e.
download data, validate it, import it, purge old data etc)
☞ Save changes on the import context. This will stage it up one
level (to the main context)
☞ Save changes on the main context. This will persist it on the
associated persistent store (and update
NSFetchedResultControllers etc)
31. // Setup the main context (probably in the AppDelegate)
[[NSManagedObjectContext alloc] initWithConcurrencyType:NSMainQueueConcurrencyType];