• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Anti-social NSEvents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Jaguar Audio CD Access
  • Next by Date: Re: Jaguar Audio CD Access
  • Previous by thread: RE: Jaguar Audio CD Access
  • Next by thread: NSData & IconFamily handles
  • Index(es):
    • Date
    • Thread