mirror of
https://github.com/libretro/Play-.git
synced 2025-03-04 09:17:50 +00:00
OSX: Have OutputWindowController have its delegate be marked as a property.
Restore the value of VfsManagerCdrom0Binding via NSFileManager.
This commit is contained in:
parent
c544da426f
commit
83d63de9cb
@ -13,8 +13,8 @@
|
||||
}
|
||||
|
||||
@property(assign, nonatomic) IBOutlet NSOpenGLView* openGlView;
|
||||
@property(assign, nonatomic) id<OutputWindowDelegate> delegate;
|
||||
|
||||
-(void)setDelegate: (id<OutputWindowDelegate>)delegate;
|
||||
-(NSSize)contentSize;
|
||||
|
||||
@end
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user