Skip to content

Commit

Permalink
Minor code/readme cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gilmoreorless committed Oct 17, 2012
1 parent b9c5249 commit 2c683dc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MFF.m
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ + (NSArray *) versionsList
[versionsTemp addObject:[curFileFolderName substringToIndex:[lowerFileFolderName rangeOfString:@".app"].location]];
[dirEnum skipDescendents];
}
// Recurse into any non-app Firefox directories
// Don't call skipDescendents here so we can recurse into any non-app Firefox directories
}
else
{
Expand Down
5 changes: 1 addition & 4 deletions MainWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ -(void) PopulateProfileValues {

- (void) awakeFromNib
{
[[self window] setDelegate:self];

// Check to be sure there are multiple profiles
if (![MFF multipleProfilesExist]){
[self performSelector:@selector(showNotEnoughProfilesThingy)
Expand Down Expand Up @@ -78,15 +76,14 @@ - (void) showNotEnoughProfilesThingy

-(IBAction)LaunchFirefox:(id)sender {
NSString *profileName = (NSString *)[[mProfilesController selectedObjects] objectAtIndex:0];
//NSString *versionName = (NSString *)[[mVersionsController selectedObject] self];
NSString *versionName = [self GetSelectedVersion];

NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:profileName forKey:@"lastProfile"];
[defaults setObject:versionName forKey:@"lastVersion"];
[defaults synchronize];

NSLog(@"%@", [profileName stringByAppendingString:versionName]);
NSLog(@"Version: %@ / Profile: %@", versionName, profileName);

[MFF launchFirefox:versionName withProfile:profileName];
}
Expand Down
9 changes: 8 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,25 @@ Because of its elementary nature, MultiFirefox looks for any app in your /Applic
/Applications/Firefox 3.3
/Applications/Firefox 2

When you launch MultiFirefox the first time, it will ask you to create a profile. At any time you can use MultiFirefox to launch Firefox's built-in Profile Manager. Best practice is to create one profile per browser version, and it makes sense to name those profiles in conjunction with the browser version you will use them for.
When you launch MultiFirefox the first time, it will ask you to create a profile. At any time you can use MultiFirefox to launch Firefox's built-in Profile Manager.
Best practice is to create one profile per browser version, and it makes sense to name those profiles in conjunction with the browser version you will use them for.

NOTE: You can have as many profiles as you like, including several for the same version!

When MultiFirefox launches, simply select a browser version, and the profile you've created for it, and voila!
If you've followed the best practice above, the appropriate profile will be selected for you when you select a version.


CHANGE LOG:

2.3.0 (gilmoreorless)
- New UI with better resizing response
- Recurse into "Firefox" sub-directories to pick up installs from FFV script (https://github.com/micmcg/FFV)
- Auto-focus on launch button
- Open Firefox and Profile Manager in the foreground
- Auto-reload profiles after launching Profile Manager
- Selecting a version auto-selects a similarly named profile
- Double-click on version name launches Firefox

2.2.004 (curtisharvey)
- UI tweaks
Expand Down

0 comments on commit 2c683dc

Please sign in to comment.