Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Makes it clear that we're talking about Mach-O. Adds error handling t…

…o the example.
  • Loading branch information...
commit 543a9b257f6ce5853d166541bebbdb21ab5d00de 1 parent 4cebd1b
Bavarious authored
Showing with 13 additions and 5 deletions.
  1. +13 −5 README.md
View
18 README.md
@@ -2,8 +2,8 @@
BVPlistExtractor exports BVExtractPlist(), a function that extracts a plist
that has been embedded in the \__TEXT __info_plist section of a binary file.
-It's known to support i386 binaries, x86_64 binaries, and fat/universal
-binaries containing at least one of i386 and x86_64.
+It's known to support i386 Mach-O binaries, x86_64 Mach-O binaries, and
+fat/universal binaries containing at least one of i386 Mach-O and x86_64 Mach-O.
# Usage
@@ -11,9 +11,17 @@ Copy BVPlistExtractor.{h,m} into your project. Then:
#import "BVPlistExtractor.h"
- id plist = BVExtractPlist(url, NULL);
-
-(at the moment there's no error reporting)
+ NSError *error = nil;
+ id plist = BVExtractPlist(url, &error);
+ if (plist) {
+ if ([plist isKindOfClass:[NSDictionary class]]) {
+ NSDictionary *plistDict = plist;
+
+ }
+ }
+ else NSLog(@"Error whilst extracting plist: %@", error);
+
+(at the moment error reporting is experimental)
# Licence

0 comments on commit 543a9b2

Please sign in to comment.
Something went wrong with that request. Please try again.