Is there any way to track mouse Entered & mouse Exited without a window in Tiger?

  • I got a view which would be attached to the menu. And something I need to
    track the mouse Entered & Exited message in that view.I find some piece of
    code in documentation said that a window will manage all the tracking
    rectangle.
    So I wonder if I attach my view in menu item, is that mean I can't tracking
    the mouse Entered & Exited message?
    Is there any way to track mouse Entered & mouse Exited without a window in
    Tiger?
  • Le 19 févr. 08 à 22:14, cai qin a écrit :

    > I got a view which would be attached to the menu. And something I
    > need to
    > track the mouse Entered & Exited message in that view.I find some
    > piece of
    > code in documentation said that a window will manage all the tracking
    > rectangle.
    > So I wonder if I attach my view in menu item, is that mean I can't
    > tracking
    > the mouse Entered & Exited message?
    > Is there any way to track mouse Entered & mouse Exited without a
    > window in
    > Tiger?
    > _______________________________________________

    A menu is a Window under the hood. If you wonder, why not try, it
    probably works?

    Just by curiosity, how do you do to add a view in a menu in Tiger?
    ([NSMenuItem setView;] was introduced in Leopard).
  • Using carbon HIView , I think that should work. But I haven't try yet . What
    I think is after I finished my custom view , then attach the view to
    menuItem

    2008/2/19, Jean-Daniel Dupas <devlists...>:
    >
    >
    > Le 19 févr. 08 à 22:14, cai qin a écrit :
    >
    >> I got a view which would be attached to the menu. And something I
    >> need to
    >> track the mouse Entered & Exited message in that view.I find some
    >> piece of
    >> code in documentation said that a window will manage all the tracking
    >> rectangle.
    >> So I wonder if I attach my view in menu item, is that mean I can't
    >> tracking
    >> the mouse Entered & Exited message?
    >> Is there any way to track mouse Entered & mouse Exited without a
    >> window in
    >> Tiger?
    >> _______________________________________________
    >
    > A menu is a Window under the hood. If you wonder, why not try, it
    > probably works?
    >
    > Just by curiosity, how do you do to add a view in a menu in Tiger?
    > ([NSMenuItem setView;] was introduced in Leopard).
    >
    >