Re: ivar access during -finalize

2012-03-11 Thread Quincey Morris
On Mar 10, 2012, at 23:18 , Eric Wing wrote: > I don't disagree that finalizers are hard and need to be approached > with great care. And I agree that all 4 of your points are valid. > However, I think this description of the retain cycle problem might be > a little over-dramatic. Retain cycles ha

Re: Forcing subclass creation through method swizzling not airtight?

2012-03-11 Thread Jean-Daniel Dupas
Yes. +initialize is not call until you try to use your class. So there is no garantee it will be call at all, and even if it is called, nothing prevent creation of instance of the super class before it append. Le 11 mars 2012 à 08:05, Antonio Nunes a écrit : > In the latest public release of my

Re: Forcing subclass creation through method swizzling not airtight?

2012-03-11 Thread Antonio Nunes
On 11 Mar 2012, at 09:48, Jean-Daniel Dupas wrote: > +initialize is not call until you try to use your class. > So there is no garantee it will be call at all, Thanks Jean-Daniel, I think I can be pretty confident it is called, since this initialize is in my NSApplication subclass. Should be ca

Re: ivar access during -finalize

2012-03-11 Thread jonat...@mugginsoft.com
On 11 Mar 2012, at 08:01, Quincey Morris wrote: > On Mar 10, 2012, at 23:18 , Eric Wing wrote: > >> I don't disagree that finalizers are hard and need to be approached >> with great care. And I agree that all 4 of your points are valid. >> However, I think this description of the retain cycle pro

Re: Forcing subclass creation through method swizzling not airtight?

2012-03-11 Thread Jean-Daniel Dupas
Le 11 mars 2012 à 13:28, Antonio Nunes a écrit : > On 11 Mar 2012, at 09:48, Jean-Daniel Dupas wrote: > >> +initialize is not call until you try to use your class. >> So there is no garantee it will be call at all, > > Thanks Jean-Daniel, > > I think I can be pretty confident it is called, sin

Transition from [NSEvent phase] to [NSEvent momentumPhase]

2012-03-11 Thread Markus Spoettl
Hello, in a custom view I'm processing -scrollWheel: events for smooth scrolling using the trackpad. When the user flicks across the trackpad, scrolling events first go through a phase cycle delivered through [NSEvent phase] (NSEventPhaseBegan -> NSEventPhaseChanged -> NSEventPhaseEnded).