mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-01 00:13:37 +00:00
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
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user