Skip to content

Instantly share code, notes, and snippets.

@cappuccino
Created June 13, 2009 19:28
Show Gist options
  • Select an option

  • Save cappuccino/129398 to your computer and use it in GitHub Desktop.

Select an option

Save cappuccino/129398 to your computer and use it in GitHub Desktop.
currentMouseOverView = [theWindow hitTest:thePoint];
//same view as last time, bail.
if (currentMosueOverView === stack.top())
return;
view = currentMouseOverView
while (view)
{
newStack.push(view)
view = [view superview];
}
for (i=0;i<stack.length;++i)
{
if (stack[i] !== newStack[i])
break;
}
for(i2=i;i2<stack.length;++i2)
[stack[i2] mouseExited:event]
for (;i<newStack.length;++i)
[stack[i] mouseEntered:event]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment