Permalink
Browse files

what the....!?

  • Loading branch information...
1 parent a341230 commit af5f9026530d3fd1b582b42cea6e99f69df6f0c6 @ByteProject ByteProject committed Jun 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -244,7 +244,7 @@ You probably guess that not all files contain SAUCE and you're right. Many ANSi
BOOL fileHasComments;
BOOL fileHasFlags;
-The first property, `fileHasRecord` stands above the others, which means if a file doesn't have a SAUCE record, it's evident it doesn't have SAUCE comments and objects. My advice: don't check `fileHasComments` and `fileHasobjects` if you already know there is no SAUCE record. Don't get my wrong, nothing will explode if you do so. But the answer will always be NO in that case so it's a waste of time. What if a file contains a SAUCE record on the other hand? It's nevertheless possible it doesn't have comments and objects. So if `fileHasRecord` is YES, you should try the other two BOOL values as well. Let's assume your class instance is still `*sauce` and you now checked for all three BOOL types, knowing the details. How to retrieve the SAUCE? Easy. `ALSauceMachine` stores the SAUCE record into properties, right at your fingertips:
+The first property, `fileHasRecord` stands above the others, which means if a file doesn't have a SAUCE record, it's evident it doesn't have SAUCE comments and objects. My advice: don't check `fileHasComments` and `fileHasFlags` if you already know there is no SAUCE record. Don't get my wrong, nothing will explode if you do so. But the answer will always be NO in that case so it's a waste of time. What if a file contains a SAUCE record on the other hand? It's nevertheless possible it doesn't have comments and objects. So if `fileHasRecord` is YES, you should try the other two BOOL values as well. Let's assume your class instance is still `*sauce` and you now checked for all three BOOL types, knowing the details. How to retrieve the SAUCE? Easy. `ALSauceMachine` stores the SAUCE record into properties, right at your fingertips:
NSString *ID;
NSString *version;
@@ -259,7 +259,7 @@ The first property, `fileHasRecord` stands above the others, which means if a fi
NSInteger tinfo3;
NSInteger tinfo4;
NSString *comments;
- NSInteger objects;
+ NSInteger flags;
Now imagine you want to print SAUCE title and author in NSLog:

0 comments on commit af5f902

Please sign in to comment.