Last active
January 1, 2016 17:19
-
-
Save schultyy/8176412 to your computer and use it in GitHub Desktop.
MasterController sends `ShowMessageDetail` message when user double clicks on row in table view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void) tableViewDoubleClick: (id) sender{ | |
NSManagedObject *message = [[[self arrayController] arrangedObjects] objectAtIndex: [sender selectedRow]]; | |
NSDictionary *userInfo = [NSDictionary dictionaryWithObject:message forKey:@"message"]; | |
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; | |
[nc postNotificationName:@"ShowMessageDetail" object:nil userInfo:userInfo]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment