X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/77a4d7d916004e628f55c09b37f10a67afa36dd7..26e65c9481bae3ff6a80687f74deb76da9ccdbee:/ITCategory-NSMenu.m?ds=inline diff --git a/ITCategory-NSMenu.m b/ITCategory-NSMenu.m index ad3904e..ec59bb1 100755 --- a/ITCategory-NSMenu.m +++ b/ITCategory-NSMenu.m @@ -30,8 +30,8 @@ extern MenuRef _NSGetCarbonMenu( NSMenu *menu); } - (void)indentItemAtIndex:(int)index toLevel:(int)indentLevel { - if ([NSMenuItem respondsToSelector:@selector(setIndentationLevel:)]) { - [[self itemAtIndex:index] setIndentationLevel:indentLevel]; + if ([[self itemAtIndex:index] respondsToSelector:@selector(setIndentationLevel:)]) { + (void)[[self itemAtIndex:index] setIndentationLevel:indentLevel]; } else { MenuRef carbonMenu = [self menuRef]; if (carbonMenu) { @@ -45,7 +45,7 @@ extern MenuRef _NSGetCarbonMenu( NSMenu *menu); int w00t, m00f; if( [self respondsToSelector:@selector(_menuImpl)] ) { - [self _menuImpl]; + (void)[self _menuImpl]; } else { return nil; }