i've done a class like this:
testClass <UIAccelerometerDelegate>
and i implement the methods of delegate.
Then in other class where i want this delegate i've done:
testClass *t = [[testClass alloc]init];
UIAccelerometer *a = [UIAccelerometer sharedAccelerometer];
[a setDelegate: t];
and in dealloc i release t.
It works, but is this the right way to write a general delegate?