diff --git a/desmume/src/cocoa/translations/English.lproj/MainMenu.xib b/desmume/src/cocoa/translations/English.lproj/MainMenu.xib index 8bf3b94b3..c120a35fe 100644 --- a/desmume/src/cocoa/translations/English.lproj/MainMenu.xib +++ b/desmume/src/cocoa/translations/English.lproj/MainMenu.xib @@ -12,8 +12,9 @@ YES - + + YES @@ -2963,6 +2964,7 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA 268 {{97, 463}, {96, 17}} + YES 68288064 @@ -2979,6 +2981,7 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA 268 {{195, 457}, {265, 26}} + YES -2076049856 @@ -3041,6 +3044,7 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA 268 {{462, 457}, {116, 26}} + YES -2076049856 @@ -3183,12 +3187,14 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA 256 {640, 394} + YES 256 {640, 17} + @@ -3196,6 +3202,7 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA -2147483392 {{584, 0}, {16, 17}} + YES @@ -3385,6 +3392,7 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA {{1, 17}, {640, 394}} + @@ -3395,6 +3403,7 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA -2147483392 {{584, 17}, {15, 102}} + _doScroller: 0.96411483253588515 @@ -3404,6 +3413,7 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA -2147483392 {{1, 420}, {624, 15}} + 1 _doScroller: @@ -3418,6 +3428,7 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA {{1, 0}, {640, 17}} + @@ -3427,6 +3438,7 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA {{-1, 37}, {642, 412}} + 562 @@ -3440,6 +3452,7 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA {{197, 12}, {247, 17}} + YES 605158976 @@ -3458,6 +3471,7 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA {640, 495} + InputPrefsView @@ -7051,14 +7065,12 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 256 {620, 304} - YES 256 {620, 17} - @@ -7066,7 +7078,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{584, 0}, {16, 17}} - YES @@ -7083,7 +7094,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA - + 67239424 33685504 @@ -7194,7 +7205,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 17}, {620, 304}} - @@ -7205,7 +7215,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{584, 17}, {15, 102}} - _doScroller: 0.95844875346260383 @@ -7215,7 +7224,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{1, 325}, {599, 15}} - 1 _doScroller: @@ -7230,7 +7238,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 0}, {620, 17}} - @@ -7240,7 +7247,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{-1, 60}, {622, 322}} - 562 @@ -7255,7 +7261,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{19, 419}, {72, 14}} - YES 68288064 @@ -7272,7 +7277,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 289 {{510, 12}, {96, 32}} - YES 67239424 @@ -7293,7 +7297,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 266 {{20, 396}, {392, 22}} - YES -1804468671 @@ -7311,7 +7314,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 292 {{14, 12}, {236, 32}} - YES 67239424 @@ -7332,7 +7334,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 265 {{510, 390}, {96, 32}} - YES 67239424 @@ -7353,7 +7354,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 265 {{414, 390}, {96, 32}} - YES 67239424 @@ -7374,7 +7374,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 292 {{250, 12}, {96, 32}} - YES 67239424 @@ -7393,13 +7392,12 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {620, 442} - {{0, 0}, {1920, 1178}} {620, 202} {1.79769e+308, 1.79769e+308} - + 1 2 {{235, 444}, {452, 115}} @@ -7407,43 +7405,41 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA Input Profile Rename NSWindow - + 256 YES - - + + 266 {{20, 48}, {412, 22}} - - + YES - + -1804468671 272630784 - + YES - - + + 268 {{342, 12}, {96, 32}} - - + 1 YES - + 67239424 134217728 OK - + -2038284033 129 @@ -7452,19 +7448,18 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 25 - - + + 268 {{17, 78}, {215, 17}} - - + YES - + 68288064 272630784 Enter a new name for this profile: - + @@ -7472,7 +7467,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {452, 115} - {{0, 0}, {1920, 1178}} {1.79769e+308, 1.79769e+308} @@ -11327,7 +11321,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA CheatWindowDelegate - + 256 YES @@ -11336,6 +11330,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 292 {{17, 4}, {294, 14}} + YES 68288064 @@ -11353,6 +11348,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{214, 220}, {16, 16}} + 28938 100 @@ -11361,6 +11357,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{133, 369}, {136, 22}} + YES -1539178944 @@ -11417,6 +11414,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{59, 374}, {60, 14}} + YES 68288064 @@ -11433,6 +11431,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{59, 398}, {72, 14}} + YES 68288064 @@ -11449,6 +11448,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{133, 393}, {136, 22}} + YES -2076049856 @@ -11505,6 +11505,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{0, 237}, {328, 134}} + NSView @@ -11512,6 +11513,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{233, 213}, {80, 28}} + YES 67239424 @@ -11532,6 +11534,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{59, 222}, {150, 14}} + YES 68288064 @@ -11549,6 +11552,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 222}, {45, 14}} + YES 68288064 @@ -11575,12 +11579,14 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 256 {286, 176} + YES 256 {286, 17} + @@ -11588,6 +11594,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{224, 0}, {16, 17}} + YES @@ -11667,6 +11674,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 17}, {286, 176}} + @@ -11677,6 +11685,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{224, 17}, {15, 102}} + _doScroller: 0.94863013698630139 @@ -11686,6 +11695,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{1, 294}, {338, 15}} + 1 _doScroller: @@ -11700,6 +11710,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 0}, {286, 17}} + @@ -11709,6 +11720,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{20, 20}, {288, 194}} + 562 @@ -11720,6 +11732,8 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {328, 434} + + NSView @@ -11744,7 +11758,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {1.79769e+308, 1.79769e+308} {500, 272} - + 256 YES @@ -11763,12 +11777,14 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 256 {500, 287} + YES 256 {500, 17} + @@ -11776,6 +11792,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{224, 0}, {16, 17}} + YES @@ -11857,6 +11874,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 17}, {500, 287}} + @@ -11867,6 +11885,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{224, 17}, {15, 102}} + _doScroller: 0.94773519163763065 @@ -11876,6 +11895,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{1, 249}, {568, 15}} + 1 _doScroller: @@ -11890,6 +11910,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 0}, {500, 17}} + @@ -11899,6 +11920,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{-1, 57}, {502, 305}} + 562 @@ -11913,6 +11935,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 370}, {120, 14}} + YES 68288064 @@ -11929,6 +11952,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 392}, {63, 14}} + YES 68288064 @@ -11945,6 +11969,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 292 {{14, 12}, {114, 32}} + YES 67239424 @@ -11965,6 +11990,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 292 {{128, 12}, {114, 32}} + YES 67239424 @@ -11985,6 +12011,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 289 {{390, 12}, {96, 32}} + 1 YES @@ -12006,6 +12033,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 289 {{294, 12}, {96, 32}} + YES 67239424 @@ -12026,6 +12054,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 265 {{378, 370}, {42, 14}} + YES 68288064 @@ -12042,6 +12071,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{139, 370}, {237, 14}} + YES 68288064 @@ -12059,6 +12089,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 265 {{422, 370}, {61, 14}} + YES 68288064 @@ -12076,6 +12107,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{82, 392}, {401, 14}} + YES 68288064 @@ -12090,13 +12122,15 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {500, 416} + + {{0, 0}, {1920, 1178}} {500, 294} {1.79769e+308, 1.79769e+308} - + 268 YES @@ -12105,6 +12139,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{233, 54}, {80, 28}} + YES 67239424 @@ -12125,6 +12160,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{20, 59}, {210, 19}} + YES 343014976 @@ -12186,6 +12222,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 86}, {294, 14}} + YES 67239424 @@ -12202,6 +12239,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 100}, {294, 14}} + YES 67239424 @@ -12215,6 +12253,8 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {328, 134} + + NSView @@ -12403,7 +12443,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA NSView - + 301 YES @@ -12412,6 +12452,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{197, 191}, {109, 32}} + YES 67239424 @@ -12432,6 +12473,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 20}, {286, 42}} + YES 67239424 @@ -12448,6 +12490,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 262}, {128, 17}} + YES 68288064 @@ -12464,6 +12507,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 265 {{149, 257}, {27, 27}} + YES -2080244224 @@ -12485,6 +12529,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{79, 230}, {38, 17}} + YES 68288064 @@ -12505,6 +12550,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{67, 198}, {128, 22}} + YES -1804468671 @@ -12576,6 +12622,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 201}, {45, 17}} + YES 68288064 @@ -12592,6 +12639,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{122, 228}, {73, 22}} + YES -1804468671 @@ -12609,6 +12657,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 231}, {60, 17}} + YES 68288064 @@ -12635,6 +12684,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{18, 14}, {190, 78}} + YES 4 1 @@ -12853,10 +12903,12 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {226, 102}} + {{46, 72}, {228, 118}} + {0, 0} 67239424 @@ -12877,6 +12929,8 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {320, 290} + + NSView @@ -28901,22 +28955,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 7678 - - - value: selection.Name - - - - - - value: selection.Name - value - selection.Name - 2 - - - 7680 - enabled: selection.IsDefaultType @@ -29093,29 +29131,13 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 7706 - - - value: selection.Name - - - - - - value: selection.Name - value - selection.Name - 2 - - - 7718 - enabled: selection.IsDefaultType - + - + enabled: selection.IsDefaultType enabled @@ -29132,7 +29154,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA delegate - + 7720 @@ -29141,7 +29163,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA inputProfileRenameSheet - + 7731 @@ -29149,7 +29171,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA closeProfileRenameSheet: - + 7732 @@ -29193,6 +29215,86 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 7744 + + + value: selection.Name + + + + + + value: selection.Name + value + selection.Name + + NSContinuouslyUpdatesValue + + + 2 + + + 7749 + + + + value: selection.Name + + + + + + value: selection.Name + value + selection.Name + + NSContinuouslyUpdatesValue + + + 2 + + + 7750 + + + + enabled: selection.Name + + + + + + enabled: selection.Name + enabled + selection.Name + + NSValueTransformerName + NSIsNotNil + + 2 + + + 7752 + + + + enabled: selection.Name + + + + + + enabled: selection.Name + enabled + selection.Name + + NSValueTransformerName + NSIsNotNil + + 2 + + + 7754 + @@ -39564,7 +39666,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA YES - + @@ -39915,69 +40017,69 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 7707 - + YES - + 7708 - + YES - - - + + + - + 7715 - + YES - + - + 7716 - - + + 7725 - + YES - + - + 7726 - - + + 7729 - + YES - + - + 7730 - - + + 7740 - + @@ -45253,7 +45355,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{984, 92}, {640, 495}} + {{982, 94}, {640, 495}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -45637,9 +45739,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{997, 160}, {620, 442}} + {{996, 161}, {620, 442}} com.apple.InterfaceBuilder.CocoaPlugin - {{997, 160}, {620, 442}} + {{996, 161}, {620, 442}} {620, 180} @@ -46121,7 +46223,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA - 7744 + 7754 diff --git a/desmume/src/cocoa/userinterface/inputPrefsView.mm b/desmume/src/cocoa/userinterface/inputPrefsView.mm index e30150ebe..bfc30399a 100644 --- a/desmume/src/cocoa/userinterface/inputPrefsView.mm +++ b/desmume/src/cocoa/userinterface/inputPrefsView.mm @@ -138,6 +138,11 @@ { NSDictionary *profileDict = [defaultProfileList objectAtIndex:i]; NSString *profileName = (NSString *)[profileDict valueForKey:@"Name"]; + if (profileName == nil) + { + profileName = @""; + } + NSMenuItem *newProfileMenuItem = [[[NSMenuItem alloc] initWithTitle:profileName action:@selector(profileSelect:) keyEquivalent:@""] autorelease]; @@ -164,6 +169,11 @@ { NSDictionary *profileDict = [savedProfilesList objectAtIndex:i]; NSString *profileName = (NSString *)[profileDict valueForKey:@"Name"]; + if (profileName == nil) + { + profileName = @""; + } + NSMenuItem *newProfileMenuItem = [[[NSMenuItem alloc] initWithTitle:profileName action:@selector(profileSelect:) keyEquivalent:@""] autorelease]; @@ -281,7 +291,13 @@ return; } - [[inputProfileMenu selectedItem] setTitle:(NSString *)[selectedProfile valueForKey:@"Name"]]; + NSString *profileName = (NSString *)[selectedProfile valueForKey:@"Name"]; + if (profileName == nil) + { + profileName = @""; + } + + [[inputProfileMenu selectedItem] setTitle:profileName]; [[NSUserDefaults standardUserDefaults] setObject:savedProfilesList forKey:@"Input_SavedProfiles"]; }