X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/77a4d7d916004e628f55c09b37f10a67afa36dd7..5cf6107f7fb51538c33d2839a2485493a7446c43:/ITCategory-NSMenu.m diff --git a/ITCategory-NSMenu.m b/ITCategory-NSMenu.m index ad3904e..7eeacc5 100755 --- a/ITCategory-NSMenu.m +++ b/ITCategory-NSMenu.m @@ -30,7 +30,7 @@ extern MenuRef _NSGetCarbonMenu( NSMenu *menu); } - (void)indentItemAtIndex:(int)index toLevel:(int)indentLevel { - if ([NSMenuItem respondsToSelector:@selector(setIndentationLevel:)]) { + if ([[self itemAtIndex:index] respondsToSelector:@selector(setIndentationLevel:)]) { [[self itemAtIndex:index] setIndentationLevel:indentLevel]; } else { MenuRef carbonMenu = [self menuRef];