Skip to content

Instantly share code, notes, and snippets.

View lhunath's full-sized avatar

Maarten Billemont lhunath

View GitHub Profile
- (void)ubiquityStoreManager:(UbiquityStoreManager *)manager willLoadStoreIsCloud:(BOOL)isCloudStore {
self.privateManagedObjectContext = nil; // 8: -1
self.mainManagedObjectContext = nil; // 9: -1
#if TARGET_OS_IPHONE
dispatch_async( dispatch_get_main_queue(), ^{
if (![self.storeLoading isVisible])
self.storeLoading = [PearlOverlay showOverlayWithTitle:@"Opening Your Data"];
} );
#!/usr/bin/env bash
for file; do
while read -r line; do
if [[ $line = "===" ]]; then
..
else
..
fi
done < "$file"