diff --git a/ChangeLog b/ChangeLog index 1e4f9badf..b631bc222 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-03-07 Richard Frith-Macdonald + + * Source/NSMenu.m: ([_updateUserDefaults:]) restore saved menu + location functionality (was only working for torn off menus). + 2003-03-06 Willem Rein Oudshoorn * Source/NSMenuView.m: Added NSMenuTitleView (moved diff --git a/Source/NSMenu.m b/Source/NSMenu.m index c4fa6104a..7600859f5 100644 --- a/Source/NSMenu.m +++ b/Source/NSMenu.m @@ -187,7 +187,7 @@ static NSNotificationCenter *nc; NSNotification *resend; resend = [NSNotification notificationWithName: NSEnqueuedMenuMoveName - object: self]; + object: self]; [[NSNotificationQueue defaultQueue] enqueueNotification: resend @@ -214,11 +214,12 @@ static NSNotificationCenter *nc; defaults = [NSUserDefaults standardUserDefaults]; menuLocations = [[defaults objectForKey: NSMenuLocationsKey] mutableCopy]; - if ([_aWindow isVisible] && [self isTornOff]) + if ([_aWindow isVisible]) { if (menuLocations == nil) { - menuLocations = AUTORELEASE([[NSMutableDictionary alloc] initWithCapacity: 2]); + menuLocations = AUTORELEASE([[NSMutableDictionary alloc] + initWithCapacity: 2]); } locString = [[self window] stringWithSavedFrame]; [menuLocations setObject: locString forKey: key];