OatmealDome

mac updater

Oct 30th, 2022
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. NSData* data = [NSData dataWithContentsOfFile:pathString];
  2.  
  3. if (!data)
  4. return true;
  5.  
  6. NSError* error = nil;
  7. NSDictionary* info_dict = [NSPropertyListSerialization propertyListWithData:data options:NSPropertyListImmutable format:nil error:&error];
  8.  
  9. if (!error)
  10. return true;
  11.  
  12. NSString* min_version_str = info_dict[@"LSMinimumSystemVersion"];
  13. if (!min_version_str)
  14. return true;
  15.  
  16. // etc
Advertisement
Add Comment
Please, Sign In to add comment