X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/77a4d7d916004e628f55c09b37f10a67afa36dd7..bbb399e28121ac71152cef5fc21e106c4b941cbc:/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; }