Anti-social NSEvents
Anti-social NSEvents
- Subject: Anti-social NSEvents
- From: Paul Fox <email@hidden>
- Date: Fri, 23 Aug 2002 23:17:41 +0000
I asked a question earlier about how to avoid accelerators from
actually accelerating :-) Actually, to avoid NSCommandKeyMask from
firing the accelerators. Ive got it sorted.
But I notice that NSEvent is an anti-social object. It seems to try
hard to avoid anyone from subclassing it (so you can attach extra
instance variables), because it only has class-level initializers.
Is this 'anti-social'? I guess one could use it as a way to avoid
sub-classing deliberately. I dont fully understand protocols - but maybe
I can achieve my goal with protocols?
I am cheating by using 'unused' bits in the modifierMask, but it would
seem nice to be able to use any object in an extensible way.
Any comments anyone - is this good, bad, needed?
_______________________________________________
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.