Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Checking to make sure policy violations are loaded
- 1. A notification with the name @”PolicyViolationsLoaded” is sent out after the policy violations are loaded into core data
- 2. you can check the NSUserDefaults to see when the last time policy violations have been loaded*/
- NSDate *policyViolationsTimeStamp = [[NSUserDefaults standardUserDefaults] objectForKey:@"policy_violations_time_stamp"];
- /*Checking to see if there are any unsaved changes to policy violations, right now this dictionary isn't being cleared anywhere. I need to implement clearing it upon success*/
- NSDictionary* decisions = [[NSUserDefaults standardUserDefaults] objectForKey:@"PolicyViolationDecisions"];
- if(!decisions){
- // there are changes that have not been pushed
- }
- else{
- // there are no local changes
- }
Add Comment
Please, Sign In to add comment