Re: NSMenuItem <protocol>
Re: NSMenuItem <protocol>
- Subject: Re: NSMenuItem <protocol>
- From: j o a r <email@hidden>
- Date: Wed, 10 Mar 2004 17:57:15 +0100
I think you're mistaken. These methods have returned protocol typed
id's for a long, long, time - even before Mac OS X was released as a
matter of fact!
j o a r
On 2004-03-10, at 17.26, Marten van Gelderen wrote:
>
As of XCode 1.1 the following 3 methods in NSMenu:
>
>
- (id <NSMenuItem>)itemAtIndex:(int)index;
>
- (id <NSMenuItem>)itemWithTitle:(NSString *)aTitle;
>
- (id <NSMenuItem>)itemWithTag:(int)tag;
>
>
return an (id <NSMenuItem>) and no longer a (NSMenuItem *) as was the
>
case in PB (or perhaps XCode 1.0?).
>
>
The documentation on MSMenuItem mentions that the protocol is
>
depreciated and should no longer be used.
>
>
I do not fully understand this change. Has it perhaps to do with the
>
improvement that now menu items with submenu's can have their own
>
action?
>
>
From an aesthetical point of view I like a NSMenuItem * better that an
>
id <NSMenuItem>, but that might be my own bias and unfamiliarity with
>
protocols.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.