Skip to content

Commit 7be2aef

Browse files
committed
Project modernization for Xcode 4.2 and OSX Lion
Performed code modernization Solved some of the deprecated warnings (those on NSSavePanel) Tweaked the main.xib of MacFUSION.app in order to better manage the column widths, so that the mount/edit buttons are no more partially hidden on launch
1 parent 28b57c8 commit 7be2aef

File tree

4 files changed

+460
-594
lines changed

4 files changed

+460
-594
lines changed

MFAdvancedViewController.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ - (IBAction)chooseIcon:(id)sender {
1818
NSOpenPanel *panel = [NSOpenPanel openPanel];
1919
[panel setAllowsMultipleSelection:NO];
2020
[panel setAllowedFileTypes:[NSArray arrayWithObject: @"icns"]];
21-
NSInteger returnValue = [panel runModalForTypes:[NSArray arrayWithObject: @"icns"]];
22-
if (returnValue == NSOKButton && [[panel filenames] count] > 0) {
23-
NSString *filename = [[panel filenames] objectAtIndex:0];
21+
NSInteger returnValue = [panel runModal];
22+
if (returnValue == NSOKButton && [[panel URLs] count] > 0) {
23+
NSString *filename = [[[panel URLs] objectAtIndex:0] path];
2424
NSImage *iconImage = [[NSImage alloc] initWithContentsOfFile:filename];
2525
if (iconImage) {
2626
[(MFClientFS*)[self representedObject] setIconImage:iconImage];

MFServerPlugin.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
}
2222

2323
+ (MFServerPlugin *)pluginFromBundleAtPath:(NSString *)path;
24-
24+
- (MFPlugin *)initWithPath:(NSString *)path;
2525
@end

0 commit comments

Comments
 (0)