• 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
How to catch [NSEvent dealloc]?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to catch [NSEvent dealloc]?


  • Subject: How to catch [NSEvent dealloc]?
  • From: "Paul Sanders" <email@hidden>
  • Date: Wed, 7 Jul 2010 20:53:09 +0100

I have a problem.  I need to know when an NSApplicationDefined NSEvent is deallocated, because it contains a reference to an object in data1 and I want to release that object at that time.  Problem is, you can't subclass NSEvent because there are no public initialisers.  Short of swizzling [NSEvent dealloc] (erk!) does anyone have an idea about how I might be able to catch an NSEvent object at the point of deallocation?

Many thanks,

Paul Sanders.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to catch [NSEvent dealloc]?
      • From: Michael Ash <email@hidden>
  • Prev by Date: Re: Pass-by value … warning (was: NSTextField fieldeditor subclass example? (and an unrelated other inquiry))
  • Next by Date: Sanity Check
  • Previous by thread: Re: Programmatically highlighting an NSMenuItem
  • Next by thread: Re: How to catch [NSEvent dealloc]?
  • Index(es):
    • Date
    • Thread