Skip to content

Commit 0285c7d

Browse files
committed
nit: update preference bundle template (#include -> #import)
1 parent cf2e0a9 commit 0285c7d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

preference_bundles_cont.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ For the `Root.plist` file, you can find out what cells are available to use by d
55
## `EXMRootListController.m`
66

77
```objc
8-
#include "EXMRootListController.h" // better to change to #import
8+
#import "EXMRootListController.h"
99

1010
@implementation EXMRootListController
1111

@@ -18,14 +18,12 @@ For the `Root.plist` file, you can find out what cells are available to use by d
1818
}
1919

2020
@end
21-
2221
```
2322
2423
This is the code of the view controller that displays when the user opens up the tweak settings page.
2524
2625
Let's go through it one by one.
27-
- It is including the `EXMRootListController.h` header which contains the headers for this view controller.
28-
- The difference between `#include` and `#import` is that `#include` literally copies the contents of the header into the file, while `#import` makes sure to only include the contents of the header once.
26+
- It is importing the `EXMRootListController.h` header which contains the headers for this view controller.
2927
- `@implementation`
3028
- This implements the view controller, basically allowing the developer to add methods and write the code for the view controller.
3129
- `- (NSArray *)specifiers {`

0 commit comments

Comments
 (0)