bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMenu menu position saving bug (PATCH)


From: Michael Hanni
Subject: NSMenu menu position saving bug (PATCH)
Date: Sat, 10 Jan 2004 09:13:34 -0600

Hi there,

The menu position saving code has not worked for me for quite awhile. After being prodded by Alex I chased this bug down. Attached is a patch. Basically the problem is with this code:

return [NSString stringWithFormat: @"\033%@", [self title]]; //NSMenu.m ~155

On my machine this would return, for the Info menu, "nfo" not "\033Info", so the key was always nil (interestingly enough, if I manually edited the key in the defaults to be \033Info it worked properly). I changed this to:

return [NSString stringWithFormat: @"+%@", [self title]];

and the key was saved and read correctly.

I'm not sure if this is the proper fix, but it works here.

Cheers,

Michael

<nsmenu-bug.patch>

Attachment: nsmenu-bug.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]