Permalink
Browse files

Replaced globalInjector usage with defaultInjector. Fixes issue #19.

  • Loading branch information...
thestoics committed Jun 12, 2012
1 parent 31a4272 commit 054dca16a4225ffed5c1993d19c759e405ea3611
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
@@ -56,16 +56,16 @@ An object can be fetched from objection by creating an injector and then asking
}
```
-A global injector can be registered with Objection which can be used throughout your application or library.
+A default injector can be registered with Objection which can be used throughout your application or library.
```objective-c
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
JSObjectionInjector *injector = [JSObjection createInjector];
- [JSObjection setGlobalInjector:injector];
+ [JSObjection setDefaultInjector:injector];
}
- (void)viewDidLoad {
- id myModel = [[JSObjection globalInjector] getObject:[MyModel class]];
+ id myModel = [[JSObjection defaultInjector] getObject:[MyModel class]];
}
```
### Awaking from Objection
@@ -141,7 +141,7 @@ Objection supports associating an object outside the context of Objection by con
@end
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
JSObjectionInjector *injector = [JSObjection createInjector:[[[MyAppModule alloc] init] autorelease]];
- [JSObjection setGlobalInjector:injector];
+ [JSObjection setDefaultInjector:injector];
}
```
#### Meta Class Bindings

0 comments on commit 054dca1

Please sign in to comment.