4
0
mirror of https://github.com/QuasarApp/macdependency.git synced 2025-05-06 08:39:33 +00:00
Mike Lischke 972fcb3094 Overhaul of the application to avoid it crashing on macOS Sierra.
- Applied all recommended XCode (8) settings.
- Removed boost and replaced that code by standard functions.
- Implemented name mangling via abi::__cxa_demangle instead of running an external process to use c++filt.
- Enabled C++11. Min deployment target is now OSX 10.7.
- Some code clean up (e.g. formatting, std namespace).
2016-11-19 16:23:39 +01:00

51 lines
1.2 KiB
Objective-C

//
// MachOModel.h
// MacDependency
//
// Created by Konrad Windszus on 13.07.09.
// Copyright 2009 Konrad Windszus. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "ExtTreeModel.h"
#import "MachO/machoarchitecture.h"
#import "MachO/dylibcommand.h"
#import "MachO/macho.h"
#import "ArchitecturesController.h"
@class MyDocument;
enum State {
StateNormal,
StateWarning,
StateError
};
@interface MachOModel : NSObject <ExtTreeModel> {
NSMutableArray* children;
MachO* file;
MyDocument* document;
MachOModel* parent;
MachOArchitecture* architecture; // current architecture
DylibCommand* command;
State state;
}
- (id) initWithFile:(MachO*)machO document:(MyDocument*)document architecture:(MachOArchitecture*)architecture loadChildren:(BOOL)loadChildren;
- (id) initWithFilename:(std::string&)filename command:(DylibCommand*)command document:(MyDocument*)document parent:(MachOModel*)parent;
- (NSArray*) children;
- (BOOL) isLeaf;
- (NSColor*) textColor;
- (NSString*) name;
- (NSNumber*) currentVersion;
- (NSNumber*) compatibleVersion;
- (NSString*) filename;
- (NSString*) dependencyType;
- (NSString*) version;
- (NSDate*) lastModificationTime;
- (NSArray*) architectures;
- (NSNumber*) size;
@end