Changing tool tip while it is showing

  • Hi,

    I want to be able to change a view's tool tip when it (the tool tip)
    is already showing. Just using -setToolTip: doesn't work nor does
    using -removeAllToolTips and then setting it (the remove works and
    hides the tool tip but it doesn't come back up without re-entering
    the view). Is there a way to do this (or to maybe force a tool tip to
    pop up since I can already remove it on demand)?

    Thanks,
    paul
  • This is just a guess, as I haven't tried anything quite like this
    myself, but tooltips are basically little windows floating over
    everything else, so maybe it is possible to get this window from the
    windowslist [NSApp windows]. You can then use a timer to refresh the
    windows contentView every second or so, hopefully it will display for
    the new string when refreshing.

    Good luck, Patrick

    On 12-Oct-06, at 18:40 PM, Paul Kim wrote:

    > Hi,
    >
    > I want to be able to change a view's tool tip when it (the tool
    > tip) is already showing. Just using -setToolTip: doesn't work nor
    > does using -removeAllToolTips and then setting it (the remove works
    > and hides the tool tip but it doesn't come back up without re-
    > entering the view). Is there a way to do this (or to maybe force a
    > tool tip to pop up since I can already remove it on demand)?
    >
    > Thanks,
    > paul
    >
    >
    >
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Cocoa-dev mailing list      (<Cocoa-dev...>)
    > Help/Unsubscribe/Update your Subscription:
    > http://lists.apple.com/mailman/options/cocoa-dev/meirmans%
    > 40sympatico.ca
    >
    > This email sent to <meirmans...>
previous month october 2006 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 31          
Go to today