|
From: | Fred Kiefer |
Subject: | Re: Doing a tutorial, something failing |
Date: | Thu, 09 Dec 2004 23:47:33 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040906 |
Pupeno wrote:
I'm doing this tutorial: http://www.gnustep.it/nicola/Tutorials/FirstGUIApplication/ On this page: http://www.gnustep.it/nicola/Tutorials/FirstGUIApplication/node14.htmlThis code:menuItem = [menu addItemWithTitle: @"Info..." action: NULL keyEquivalent: @""]; gives me this warning: MyApp.m:35: warning: assignment from incompatible pointer type And the application doesn't behave as expected (I don't get the info submenu to show up).
You may savely ignore the warning here. The compiler is overly exact about types here the method returns (id <NSMenuItem>) and not a (NSMenuItem *), but the later implements the former protocoll.
I tried this example myself and the info submenu shows up fine. Perhaps you have a bit more of information on your case?
Fred
[Prev in Thread] | Current Thread | [Next in Thread] |