QTfrontend/CocoaInitializer.mm
author unc0rr
Thu, 10 Sep 2009 12:46:56 +0000
changeset 2373 e3989519731b
parent 2261 57e99c908e7c
child 2400 2422ea85d100
permissions -rw-r--r--
Fix background and horizont positions when zooming

/*
 * 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();
	NSApplicationLoad();
	d->autoReleasePool_ = [[NSAutoreleasePool alloc] init];
}

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