Skip to content

Instantly share code, notes, and snippets.

@zigphroid
zigphroid / gist:1398971
Created November 28, 2011 03:29
ManagedObjectContext notifications not firing
//In my app delegate after I setup routes and such:
[[NSNotificationCenter defaultCenter] addObserver:myTableViewController
selector:@selector(mergeChangesFromContextDidSaveNotification:)
name:NSManagedObjectContextDidSaveNotification
object:[RKObjectManager sharedManager].objectStore.managedObjectContext];
//In myTableViewController:
- (void)mergeChangesFromContextDidSaveNotification:(NSNotification *)notification
{
NSLog(@"THIS NEVAR HAPPENZ!@#");
@zigphroid
zigphroid / gist:1746657
Created February 5, 2012 17:17
c++ while loop
char yn;
while (yn != n) {
// ask user things, do math stuff
cout << "Continue? (y/n): ";
cin >> yn;
}
board_name OMNIBUSF4
manufacturer_id AIRB
mcu_id 002c00493337511332343333
signature
# reset configuration to default settings
defaults nosave
# name