Fish Eye Custom NSMenu Sample Code

  • Hi,

    I remember some (possibly) cocoa sample code that may have been from
    Apple, that demonstrated how to create a custom NSMenu with a huge
    number of items but using the 'fish-eye' visual trick of scaling those
    near the mouse (with a fall off to a tiny font size). Does anyone else
    recall this sample code - I'm having trouble finding reference to it
    (on google and on these lists).

    Thanks

    Regards,

    Ian
    *******************************
    Ian Grant
    Senior Lecturer in Digital Art
    Faculty of the Arts
    Thames Valley University
    Ealing, UK
    W5 5DX
    <ian.grant...>
    *******************************
  • The kind of menu you're asking about is generally known as a
    "hyperbolic tree". An example can be seen at:

    <http://www.directionsmag.com/images/articles/reid/scip/
    CitationTree-2b.gif
    >

    I'd be surprised if there were a NSMenu based example of this since
    NSMenu isn't really customizable in the ways needed to implement a
    hyperbolic tree.

    _murat

    On Nov 6, 2007, at 1:23 PM, Ian Grant wrote:

    > I remember some (possibly) cocoa sample code that may have been
    > from Apple, that demonstrated how to create a custom NSMenu with a
    > huge number of items but using the 'fish-eye' visual trick of
    > scaling those near the mouse (with a fall off to a tiny font size).
    > Does anyone else recall this sample code - I'm having trouble
    > finding reference to it (on google and on these lists).
  • Thanks for your reply, Murat. I think I found the source (or similar
    to what I remember) - it was not Cocoa but Java UI code. I still have
    a feeling I've seen this in cocoa / ojb-c

    <http://www.cs.umd.edu/hcil/fisheyemenu/fisheyemenu-demo.shtml>

    Thanks for the heads-up on hyperbolic trees.

    All the best, Ian

    *******************************
    Ian Grant
    Senior Lecturer in Digital Art
    Faculty of the Arts
    Thames Valley University
    Ealing, UK
    W5 5DX
    <ian.grant...>
    *******************************

    On 6 Nov 2007, at 21:57, Murat Konar wrote:

    > The kind of menu you're asking about is generally known as a
    > "hyperbolic tree". An example can be seen at:
    >
    > <http://www.directionsmag.com/images/articles/reid/scip/CitationTree-2b.gif
    > >
    >
    > I'd be surprised if there were a NSMenu based example of this since
    > NSMenu isn't really customizable in the ways needed to implement a
    > hyperbolic tree.
    >
    >
    > _murat
    >
    > On Nov 6, 2007, at 1:23 PM, Ian Grant wrote:
    >
    >> I remember some (possibly) cocoa sample code that may have been
    >> from Apple, that demonstrated how to create a custom NSMenu with a
    >> huge number of items but using the 'fish-eye' visual trick of
    >> scaling those near the mouse (with a fall off to a tiny font size).
    >> Does anyone else recall this sample code - I'm having trouble
    >> finding reference to it (on google and on these lists).
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today