Move the job of creating userActivity to AtomApplication
This commit is contained in:
parent
60bd60e1ed
commit
2f9fee0c8a
3 changed files with 12 additions and 12 deletions
|
@ -28,8 +28,12 @@
|
|||
handlingSendEvent_ = handlingSendEvent;
|
||||
}
|
||||
|
||||
- (void)setCurrentActivity:(NSUserActivity*)userActivity {
|
||||
currentActivity_ = base::scoped_nsobject<NSUserActivity>(userActivity);
|
||||
- (void)setCurrentActivity:(NSString*)type
|
||||
withUserInfo:(NSDictionary*)userInfo {
|
||||
currentActivity_ = base::scoped_nsobject<NSUserActivity>(
|
||||
[[NSUserActivity alloc] initWithActivityType:type]);
|
||||
[currentActivity_ setUserInfo:userInfo];
|
||||
[currentActivity_ becomeCurrent];
|
||||
}
|
||||
|
||||
- (NSUserActivity*)getCurrentActivity {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue