Skip navigation.
 
mlWhy multiple calls to an IB palette inspector's 'revert' method?
FROM : Wagner Truppel
DATE : Tue Aug 01 18:24:42 2006

Hi there...

I've noticed that the palette I'm writing gets its inspector's 
'revert' method called several times when a new object is dragged 
from the palette to a window or panel. At first I thought this was a 
problem with my code, but it isn't!

By setting up a minimal palette using Apple's IB palette template and 
adding

NSLog(@"revert called by %@", [sender class]);

to the 'revert' method of its inspector class, you'll notice that 
'revert' gets called NINE times in a row, by an object of class 
IBInspectorManager. And this is without *any* extra code of any kind.

Does anyone have any idea why that is?

Wagner

Related mailsAuthorDate
No related mails found.