C++ (Qt) NSString *cocoaString = [[NSString alloc] initWithUTF8String:utf8String]; [[NSApp dockTile] setBadgeLabel:cocoaString]; [cocoaString release];
C++ (Qt)func( str.toUtf8().constData() );