aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPMenuAdditions.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-01-22 12:19:21 +0000
committerstuconnolly <stuart02@gmail.com>2012-01-22 12:19:21 +0000
commit1d7ed99d602bf9c7aa4ea40a9a2ab6458864e51f (patch)
tree6c08ad29618ea02caf302180706d010c90cd57e0 /Source/SPMenuAdditions.m
parente23ba5155a53c43a106ac9646f51321ccc7d86f4 (diff)
downloadsequelpro-1d7ed99d602bf9c7aa4ea40a9a2ab6458864e51f.tar.gz
sequelpro-1d7ed99d602bf9c7aa4ea40a9a2ab6458864e51f.tar.bz2
sequelpro-1d7ed99d602bf9c7aa4ea40a9a2ab6458864e51f.zip
Bring outlinew view branch up to date with trunk (r3375:3468).
Diffstat (limited to 'Source/SPMenuAdditions.m')
-rw-r--r--Source/SPMenuAdditions.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPMenuAdditions.m b/Source/SPMenuAdditions.m
index d653f71a..4ee5956f 100644
--- a/Source/SPMenuAdditions.m
+++ b/Source/SPMenuAdditions.m
@@ -24,7 +24,6 @@
#import "SPMenuAdditions.h"
-
@implementation NSMenu (SPMenuAdditions)
// Add a 10.5-compatible removeAllItems
@@ -32,7 +31,8 @@
{
if ([self respondsToSelector:@selector(removeAllItems)]) {
[(id)self removeAllItems];
- } else {
+ }
+ else {
while ([self numberOfItems]) [self removeItemAtIndex:0];
}
}