I digged in documentation but didn’t find how to do. How can I add tooltip for every item in IKImageBrowserView?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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:
Then I implemented this function:
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.