QTfrontend/CocoaInitializer.mm
author nemo
Sat, 25 Jul 2009 18:02:12 +0000
changeset 2274 f413e41802d6
parent 2261 57e99c908e7c
child 2400 2422ea85d100
permissions -rw-r--r--
Stray semi-opaque pixels fixed

/*
 * 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;
}