* Modeler.m

Use NULL instead of nil for an empty NSMenuItem action.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26514 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Blake Nicholson 2008-05-12 12:48:11 +00:00
parent 94d86a2b8e
commit 3844a77a37
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2008-05-12 Blake Nicholson <blaken@umich.edu>
* Modeler.m: Use NULL instead of nil for an empty NSMenuItem action.
2008-05-11 Blake Nicholson <blaken@umich.edu>
* GNUmakefile.in: Add EOInterface, EOModeler, and DBModeler to

View file

@ -78,7 +78,7 @@
@implementation NSMenu (im_lazy)
- (NSMenuItem *)addItemWithTitle: (NSString *)s
{
return [self addItemWithTitle: s action: nil keyEquivalent: @""];
return [self addItemWithTitle: s action: NULL keyEquivalent: @""];
}
- (NSMenuItem *)addItemWithTitle: (NSString *)s action: (SEL)sel
@ -132,7 +132,7 @@
[subMenu setAutoenablesItems:YES];
[subMenu addItemWithTitle: _(@"About DBModeler")
action: nil];
action: NULL];
[subMenu addItem: [NSMenuItem separatorItem]];