From 26e65c9481bae3ff6a80687f74deb76da9ccdbee Mon Sep 17 00:00:00 2001 From: Joseph Spiros Date: Fri, 14 Nov 2003 10:45:26 +0000 Subject: [PATCH] Fixing some build errors related to return types from undefined methods (for methods that have different implementations under Jaguar and Panther) --- ITCategory-NSMenu.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ITCategory-NSMenu.m b/ITCategory-NSMenu.m index 7eeacc5..ec59bb1 100755 --- a/ITCategory-NSMenu.m +++ b/ITCategory-NSMenu.m @@ -31,7 +31,7 @@ extern MenuRef _NSGetCarbonMenu( NSMenu *menu); - (void)indentItemAtIndex:(int)index toLevel:(int)indentLevel { if ([[self itemAtIndex:index] respondsToSelector:@selector(setIndentationLevel:)]) { - [[self itemAtIndex:index] setIndentationLevel:indentLevel]; + (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; } -- 2.20.1