Abizern (owner)

Revisions

gist: 224939 Download_button fork
public
Description:
Correcting typos in the original gist
Public Clone URL: git://gist.github.com/224939.git
Embed All Files: show embed
Checking if NSSet is Populated. #
1
2
3
4
5
6
7
8
9
10
11
- (void)syncKVO:(NSNotification *)notification {
    NSDictionary *userInfoDictionary = [notification userInfo];
    NSSet *deletedObjects = [userInfoDictionary objectForKey:NSDeletedObjectsKey];
 
    if ([deletedObjects count]) {
          //do something if it contains objects
    } else {
          //do something if it doesn't contain objects.
    }
}