On Oct 15, 2013, at 16:05:06, Andy Lee <ag...@mac.com> wrote:

> Out of curiosity, when you say you have "extended" NSMenu, do you mean you've 
> subclassed it?  That is what I would infer from your mention of class 
> extensions.  Is there some reason you don't add a category instead?  I wonder 
> because you only mentioned adding methods, not overriding them or adding 
> ivars.

This isn't a subclass, but a category. I tend to interchange the terms 
"extension" and "category".

@implementation NSMenu(FCExtensions)

-(void) someMethod
{
        for(NSMenuItem* item in [self itemArray])
                ;
}

@end

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to