FROM : Fredrik Olsson
DATE : Mon Jul 31 13:58:17 2006
The documentation for the NSMenuItem protocol states that it is to be
removed from AppKit, and that I should replace id <NSMenuItem> to
reference the class NSMenuItem. When I do NSMenu's method itemAtIndex:
complains of incompatible types.
Even typecasting as;
NSMenuItem *foo = (id <NSMenuItem>)[barMenu itemAtIndex:baz];
Gives the same warning. Requiring the typecast when depreciating the
protocol seems strange to begin with. What am I missing here?
// Fredrik Olsson
DATE : Mon Jul 31 13:58:17 2006
The documentation for the NSMenuItem protocol states that it is to be
removed from AppKit, and that I should replace id <NSMenuItem> to
reference the class NSMenuItem. When I do NSMenu's method itemAtIndex:
complains of incompatible types.
Even typecasting as;
NSMenuItem *foo = (id <NSMenuItem>)[barMenu itemAtIndex:baz];
Gives the same warning. Requiring the typecast when depreciating the
protocol seems strange to begin with. What am I missing here?
// Fredrik Olsson
| Related mails | Author | Date |
|---|---|---|
| Fredrik Olsson | Jul 31, 13:58 | |
| Matt Neuburg | Jul 31, 21:17 | |
| Fredrik Olsson | Aug 1, 08:21 | |
| Jakob Olesen | Aug 1, 09:35 |






Cocoa mail archive

