Only call that method if we are installing on OS X 10.3.

This commit is contained in:
Steve Checkoway
2003-11-26 02:56:31 +00:00
parent 373444498d
commit 462fff744b
+2
View File
@@ -83,6 +83,8 @@ const CString GetPath(const CString& ID)
[panel setResolvesAliases:YES]; [panel setResolvesAliases:YES];
[panel setAllowsMultipleSelection:NO]; [panel setAllowsMultipleSelection:NO];
[panel setPrompt:@"Install"]; [panel setPrompt:@"Install"];
// Only in 10.3 and above
if ([panel respondsToSelector:@selector(setCanCreatetDirectories:)])
[panel setCanCreateDirectories:YES]; [panel setCanCreateDirectories:YES];
[panel setTitle:@"Choose a location to install."]; [panel setTitle:@"Choose a location to install."];
int result = [panel runModalForTypes:[NSArray array]]; // No extensions int result = [panel runModalForTypes:[NSArray array]]; // No extensions