mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
Windows have titles again. Also I've owned up to not knowing how to edit UEFs right now.
This commit is contained in:
parent
40660fe680
commit
c3a795328d
@ -14,6 +14,7 @@ class DocumentController: NSDocumentController {
|
|||||||
if let documentClass = analyser.documentClass as? NSDocument.Type {
|
if let documentClass = analyser.documentClass as? NSDocument.Type {
|
||||||
let document = documentClass.init()
|
let document = documentClass.init()
|
||||||
if let machineDocument = document as? MachineDocument {
|
if let machineDocument = document as? MachineDocument {
|
||||||
|
machineDocument.setDisplayName(analyser.displayName)
|
||||||
machineDocument.configureAs(analyser)
|
machineDocument.configureAs(analyser)
|
||||||
return machineDocument
|
return machineDocument
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
<key>CFBundleTypeName</key>
|
<key>CFBundleTypeName</key>
|
||||||
<string>Electron/BBC Tape Image</string>
|
<string>Electron/BBC Tape Image</string>
|
||||||
<key>CFBundleTypeRole</key>
|
<key>CFBundleTypeRole</key>
|
||||||
<string>Editor</string>
|
<string>Viewer</string>
|
||||||
<key>LSItemContentTypes</key>
|
<key>LSItemContentTypes</key>
|
||||||
<array/>
|
<array/>
|
||||||
<key>LSTypeIsPackage</key>
|
<key>LSTypeIsPackage</key>
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
- (instancetype)initWithFileAtURL:(NSURL *)url;
|
- (instancetype)initWithFileAtURL:(NSURL *)url;
|
||||||
|
|
||||||
@property(nonatomic, readonly) Class documentClass;
|
@property(nonatomic, readonly) Class documentClass;
|
||||||
|
@property(nonatomic, readonly) NSString *displayName;
|
||||||
- (void)applyToMachine:(CSMachine *)machine;
|
- (void)applyToMachine:(CSMachine *)machine;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -27,6 +27,9 @@
|
|||||||
std::list<StaticAnalyser::Target> targets = StaticAnalyser::GetTargets([url fileSystemRepresentation]);
|
std::list<StaticAnalyser::Target> targets = StaticAnalyser::GetTargets([url fileSystemRepresentation]);
|
||||||
if(!targets.size()) return nil;
|
if(!targets.size()) return nil;
|
||||||
_target = targets.front();
|
_target = targets.front();
|
||||||
|
|
||||||
|
// TODO: can this better be supplied by the analyser?
|
||||||
|
_displayName = [[url pathComponents] lastObject];
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user