Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7042673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:11:49+00:00 2026-05-28T02:11:49+00:00

I digged in documentation but didn’t find how to do. How can I add

  • 0

I digged in documentation but didn’t find how to do. How can I add tooltip for every item in IKImageBrowserView?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:11:49+00:00Added an answer on May 28, 2026 at 2:11 am

    The IKImageBrowserView is an NSView, so you can add the tooltip rectangles using these functions:

    http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#//apple_ref/doc/uid/20000014-SW47

    For my implementation, I have the image browser inside a scrollview that doesn’t resize, so I only have to update the tool tips when my data changes using this code, where images is my datasource array:

    [imageBrowser reloadData];
    [imageBrowser removeAllToolTips];
    for (int i=0; i<[images count]; i++) {
        NSRect rect = [imageBrowser itemFrameAtIndex:i];
        ImageObject *image = [images objectAtIndex:i];
        [imageBrowser addToolTipRect:rect owner:self userData:image];
    }
    

    Then I implemented this function:

    - (NSString*)view:(NSView *)view stringForToolTip:(NSToolTipTag)tag point:(NSPoint)point userData:(void *)data {
        ImageObject *image = (ImageObject*)data;
        return [image imageTitle];
    }
    

    If your image browser changes its layout (you resize it adding/removing columns, or you change the zoom, etc) you will need to update all the tool tips.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

all I want to add rspec tests to grape API. and our app is
So, I've digged the internet in seach on a decent tutorial on howtta use
I have a set of database files (i.e. .data , .properties and .script file)
I have managed to make my URL i18n compliant using Zend_Controller_Router . Ie: en/user/login
I got some java-byte-code (so compiled java-source) which is generated in my program. Now
I'm having CSS question on aligning an element vertically. Please take a look at
I need your advice. We have an already working web resource management application, we
I need to do alot of high-performance case-insensitive string comparisons and realized that my
I would like to use the devise mailer globally, since that way I would
I've got a tiny (I hope) problem again, and I don't know how to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.