FROM : Matt Neuburg
DATE : Mon Jul 31 21:17:25 2006
On Mon, 31 Jul 2006 13:58:17 +0200, Fredrik Olsson
<fredrik.<email_removed>> said:
>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.
Not OMM. I just did this:
NSMenuItem* foo = [editMenu itemAtIndex: 3];
It compiled and ran just fine. And I have a LOT of warning settings turned
on - including that I can't compile at all if there are any warnings (I'm
treating warnings as errors). So what warning settings do you have turned
on? Or maybe the problem is just that you are sending itemAtIndex: to
something that is not, in fact, an NSMenu*. m.
--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
DATE : Mon Jul 31 21:17:25 2006
On Mon, 31 Jul 2006 13:58:17 +0200, Fredrik Olsson
<fredrik.<email_removed>> said:
>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.
Not OMM. I just did this:
NSMenuItem* foo = [editMenu itemAtIndex: 3];
It compiled and ran just fine. And I have a LOT of warning settings turned
on - including that I can't compile at all if there are any warnings (I'm
treating warnings as errors). So what warning settings do you have turned
on? Or maybe the problem is just that you are sending itemAtIndex: to
something that is not, in fact, an NSMenu*. m.
--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
| 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

