Files
cappuccino/Tools/XcodeCapp/XcodeCapp/XCCOperationErrorDataView.m
T
Antoine Mercadal 47611b7615 NEW: XcodeCapp 4.0
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
2015-08-04 10:35:23 -07:00

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