Whenever my method sets an object to onTouchEventReceiver , it is lost when another The way the second is called thread.
// Touch Event Resource in Header ID; SEL ON Touch Selector; - (zero) set oenteche sheller: (SEL) cell with object: (ID) OzZ {NSLog (@ "obje to% @", OBG); OnTouchSelector = sel; [Self SetOn TouchWeaver Receiver: Oz]; NSLog (@ "==== -----% @", Touch Event Receiver); // this works) // Another thread says this - (zero) touch event reassessed {NSLog (@ "% firing selector at% @", touch avent receiver, itself); // Why does this happen on Earth ????? If (onTouchEventReceiver! = Void) / / onTouchEventReceiver is (empty) {[onTouchEventReceiver Display: onTouchSelector]; }} The code produces the following:
2010-07-18 23:40 40: 54.776 app [737] : 903] OBJE to be & lt; AppCtl: 0x10fa00 & gt; 2010-07-18 23:40 40: 54.787 App [737: 903] ==== ----- & lt; AppCtl: 0x10fa00 & gt; ... touched after screen ...
Touch event found on 154x243 director, mask : 2 2010-07-18 23:41 41: 39.342 Apps [737: 3B3] Elayyar Hit Test Passed: & lt; Allier: 0x110af0 & gt; 2010-07-18 23:41 41: 39.348 Ape [737: 3B3] Allier: 0x110af0 & gt; By firing by a selector (zero); Why does this happen? Code seems right.
Creates AALayer in your log message I think this CALayer can be a sub-section of if this is the case, then you can easily have two different objects. Rendering machinery is repeated by CALayer for presentation if this problem , You need the -initWithLayer: sub-class to properly copy your extra yvar.
Comments
Post a Comment