mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 13:07:02 +00:00
XcodeCapp 4.0 is a major release of our beloved tool. In a nutshell it: - allows to manage multiple projects simultaneously - allows to follow operations and cancel them - has a per project Error and Warning reporting - supports capp_env as you can define additional paths and objj include path per project - much more things
44 lines
1.1 KiB
Objective-C
44 lines
1.1 KiB
Objective-C
//
|
|
// XCCAbstractOperation.m
|
|
// XcodeCapp
|
|
//
|
|
// Created by Antoine Mercadal on 6/2/15.
|
|
// Copyright (c) 2015 cappuccino-project. All rights reserved.
|
|
//
|
|
|
|
#import "XCCAbstractOperation.h"
|
|
|
|
|
|
@implementation XCCAbstractOperation
|
|
|
|
- (instancetype)initWithCappuccinoProject:(XCCCappuccinoProject *)aCappuccinoProject taskLauncher:(XCCTaskLauncher*)aTaskLauncher
|
|
{
|
|
if (self = [super init])
|
|
{
|
|
self.cappuccinoProject = aCappuccinoProject;
|
|
self->taskLauncher = aTaskLauncher;
|
|
}
|
|
|
|
return self;
|
|
}
|
|
|
|
- (NSMutableDictionary *)operationInformations
|
|
{
|
|
return [@{@"cappuccinoProject": self.cappuccinoProject} mutableCopy];
|
|
}
|
|
|
|
- (void)dispatchNotificationName:(NSString *)notificationName
|
|
{
|
|
[self dispatchNotificationName:notificationName userInfo:[self operationInformations]];
|
|
}
|
|
|
|
- (void)dispatchNotificationName:(NSString *)notificationName userInfo:(id)userInfo
|
|
{
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:notificationName object:self userInfo:userInfo];
|
|
});
|
|
}
|
|
|
|
|
|
@end
|