mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 00:20:49 +00:00
Warn about incompatibility with MacOSX in NSMenuItem setKeyEquivalent:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26582 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a42739f8d5
commit
873c7f19d0
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-05-28 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSMenuItem.m (-setKeyEquivalent:): Warn about
|
||||||
|
incompatibility with MacOSX.
|
||||||
|
|
||||||
2008-05-27 Fred Kiefer <FredKiefer@gmx.de>
|
2008-05-27 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/GSTheme.m (-tilesNamed:cache:): Make sure local variable
|
* Source/GSTheme.m (-tilesNamed:cache:): Make sure local variable
|
||||||
|
|
|
@ -212,7 +212,13 @@ static Class imageClass;
|
||||||
- (void) setKeyEquivalent: (NSString*)aKeyEquivalent
|
- (void) setKeyEquivalent: (NSString*)aKeyEquivalent
|
||||||
{
|
{
|
||||||
if (nil == aKeyEquivalent)
|
if (nil == aKeyEquivalent)
|
||||||
aKeyEquivalent = @"";
|
{
|
||||||
|
/* We warn about nil for compatibiliy with MacOS X, which refuses
|
||||||
|
nil. */
|
||||||
|
NSDebugMLLog(@"MacOSXCompatibility",
|
||||||
|
@"Attempt to use nil as key equivalent");
|
||||||
|
aKeyEquivalent = @"";
|
||||||
|
}
|
||||||
|
|
||||||
ASSIGNCOPY(_keyEquivalent, aKeyEquivalent);
|
ASSIGNCOPY(_keyEquivalent, aKeyEquivalent);
|
||||||
[_menu itemChanged: self];
|
[_menu itemChanged: self];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue