diff options
author | Dessie Linden <dessie@lindenlab.com> | 2010-06-23 10:46:05 -0700 |
---|---|---|
committer | Dessie Linden <dessie@lindenlab.com> | 2010-06-23 10:46:05 -0700 |
commit | 6c57abb295447f2b44eb833cb77fa718dc2b1118 (patch) | |
tree | 0d9e147ed0b6bbde05e7b9550386114a13416c10 /indra/llwindow | |
parent | 87082996e6408919591ee3d408918a4425494dc9 (diff) | |
parent | af914e4ab666aad041aa17f6459d1ff834440b44 (diff) |
Merged from q/viewer-release
Diffstat (limited to 'indra/llwindow')
-rw-r--r-- | indra/llwindow/llwindowmacosx-objc.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowmacosx-objc.mm b/indra/llwindow/llwindowmacosx-objc.mm index 59b25e1726..3a822a93a6 100644 --- a/indra/llwindow/llwindowmacosx-objc.mm +++ b/indra/llwindow/llwindowmacosx-objc.mm @@ -49,6 +49,11 @@ void setupCocoa() { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + // The following prevents the Cocoa command line parser from trying to open 'unknown' arguements as documents. + // ie. running './secondlife -set Language fr' would cause a pop-up saying can't open document 'fr' + // when init'ing the Cocoa App window. + [[NSUserDefaults standardUserDefaults] setObject:@"NO" forKey:@"NSTreatUnknownArgumentsAsOpen"]; + // This is a bit of voodoo taken from the Apple sample code "CarbonCocoa_PictureCursor": // http://developer.apple.com/samplecode/CarbonCocoa_PictureCursor/index.html |