#include <QtGui>
#include <QtWidgets>
#include <QMacCocoaViewContainer>
#include <QMainWindow>
#import <Cocoa/Cocoa.h>

int main(int argc, char* argv[])
{
	QApplication app(argc, argv);
	
	QMainWindow* window = new QMainWindow;
	window->setWindowTitle(QLatin1String("Main Window"));
	window->resize(200,200);
	window->move(100,100);

    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
	NSSearchField     *search = [[NSSearchField     alloc] init];
	[[search cell] setPlaceholderString:@"Cocoa Native"];

    window->setCentralWidget(new QMacCocoaViewContainer(search));

    [search release];
    [pool   release];
    window->show();

	return app.exec();
}
