mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-26 13:37:03 +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
41 lines
1.1 KiB
Objective-C
41 lines
1.1 KiB
Objective-C
//
|
|
// OperationErrorCellView.m
|
|
// XcodeCapp
|
|
//
|
|
// Created by Alexandre Wilhelm on 5/21/15.
|
|
// Copyright (c) 2015 cappuccino-project. All rights reserved.
|
|
//
|
|
|
|
#import "XCCOperationErrorDataView.h"
|
|
#import "XCCOperationError.h"
|
|
|
|
@implementation XCCOperationErrorDataView
|
|
|
|
- (void)viewWillMoveToWindow:(NSWindow *)newWindow
|
|
{
|
|
if (!newWindow)
|
|
return;
|
|
|
|
if (self.errorOperation.message)
|
|
self->fieldMessage.stringValue = self.errorOperation.message;
|
|
else
|
|
self->fieldMessage.stringValue = @"No message";
|
|
|
|
if (self.errorOperation.lineNumber)
|
|
self->fieldLineNumber.stringValue = self.errorOperation.lineNumber;
|
|
else
|
|
self->fieldLineNumber.stringValue = @"0";
|
|
|
|
switch (self.errorOperation.errorType)
|
|
{
|
|
case XCCCappLintOperationErrorType:
|
|
case XCCNib2CibOperationErrorType:
|
|
[self->imageViewType setImage:[NSImage imageNamed:@"NSStatusPartiallyAvailable"]];
|
|
break;
|
|
|
|
default:
|
|
[self->imageViewType setImage:[NSImage imageNamed:@"NSStatusUnavailable"]];
|
|
}
|
|
}
|
|
|
|
@end |