Revert prior attempted optimisation. Gridding the land pays in some situations, but not all. Restricting to an upper bound might help, but overall, seems too fuzzy to be worth it. On one side is increased cost of Add/Delete + extra test on collision check, on the other is skipping the list iteration. Perhaps for large lists.
/*
* M3Panel.cpp
*
*
* Created by Vittorio on 28/09/09.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#include "M3Panel.h"
#include "M3InstallController.h"
#include <Cocoa/Cocoa.h>
class M3Panel::Private
{
public:
M3InstallController *install;
};
M3Panel::M3Panel(void)
{
c = new Private;
c->install = [[M3InstallController alloc] init];
[c->install retain];
}
M3Panel::~M3Panel()
{
[c->install release];
delete c;
}
void M3Panel::showInstallController()
{
[c->install displayInstaller];
}