view common_osx.mm @ 138:a7dbc8e5b69d

* Minor adjustment to scene lifecycle, delete old scene before creating new one to use less memory &c
author Chris Cannam
date Tue, 30 Nov 2010 13:51:50 +0000
parents 68aebc316898
children
line wrap: on
line source

#include "common.h"

#include <QString>

#ifdef Q_OS_MAC

#include <Foundation/Foundation.h>

QString getUserRealName()
{
    NSString *s = NSFullUserName();
    return QString::fromLocal8Bit([s UTF8String]);
}

#endif