- Timestamp:
- 05/19/09 12:45:57 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowCocoa.mm
r10208 r10242 1151 1151 [new_win setContentView: [_window contentView]]; 1152 1152 setupNSWindow(new_win); 1153 [new_win setTitle: [_window title]]; 1153 NSString* title = (_traits.valid()) ? [NSString stringWithUTF8String: _traits->windowName.c_str()] : @""; 1154 [new_win setTitle: title ]; 1154 1155 [_window close]; 1155 1156 [_window release]; … … 1273 1274 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 1274 1275 1275 NSString* title = [NSString stringWith CString: name.c_str() encoding: NSUTF8StringEncoding];1276 NSString* title = [NSString stringWithUTF8String: name.c_str()]; 1276 1277 [_window setTitle: title]; 1277 [title release];1278 1278 [pool release]; 1279 1279 }
