QTfrontend/CocoaInitializer.mm
author smxx
Thu, 18 Mar 2010 09:55:22 +0000
changeset 3019 d6e19f35d98d
parent 2400 2422ea85d100
child 3697 d5b30d6373fc
permissions -rw-r--r--
Frontend: * Updated stylesheets and resized icons * Forced Frontend's minimum size to 800x600 * Fixed some swapped texts in German locale Graphics: * Added two hats by DJ. LisT

/*
 * Copyright (C) 2008 Remko Troncon
 */

#include "CocoaInitializer.h"

#include <AppKit/AppKit.h>
#include <Cocoa/Cocoa.h>
#include <QtDebug>

class CocoaInitializer::Private 
{
	public:
		NSAutoreleasePool* autoReleasePool_;
};

CocoaInitializer::CocoaInitializer()
{
	d = new CocoaInitializer::Private();
        c = new CocoaInitializer::Private();
	NSApplicationLoad();
        c->autoReleasePool_ = [[NSAutoreleasePool alloc] init];
	d->autoReleasePool_ = [[NSAutoreleasePool alloc] init];
}

CocoaInitializer::~CocoaInitializer()
{
	[d->autoReleasePool_ release];
        [c->autoReleasePool_ release];
	delete c;
	delete d;
}