OSX: Have OutputWindowController have its delegate be marked as a property.

Restore the value of VfsManagerCdrom0Binding via NSFileManager.
This commit is contained in:
C.W. Betts 2016-12-07 16:49:57 -07:00
parent c544da426f
commit 83d63de9cb
3 changed files with 4 additions and 7 deletions

View File

@ -13,8 +13,8 @@
}
@property(assign, nonatomic) IBOutlet NSOpenGLView* openGlView;
@property(assign, nonatomic) id<OutputWindowDelegate> delegate;
-(void)setDelegate: (id<OutputWindowDelegate>)delegate;
-(NSSize)contentSize;
@end

View File

@ -7,11 +7,7 @@
@implementation OutputWindowController
@synthesize openGlView = _openGlView;
-(void)setDelegate: (id)delegate
{
_delegate = delegate;
}
@synthesize delegate = _delegate;
-(NSApplicationPresentationOptions)window: (NSWindow*)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions
{

View File

@ -192,7 +192,8 @@
}
else
{
m_value = [[NSString alloc] initWithUTF8String: preferenceValue];
m_value = [[NSFileManager defaultManager] stringWithFileSystemRepresentation:preferenceValue length:strlen(preferenceValue)];
[m_value retain];
}
return self;
}