Is it possible to modify the selection rect for an IKImageBrowserCell?

73 views Asked by At

We are using a subclass of IKImageBrowserView that contains a subclass of IKImageBrowserCell as the cells

The problem we're facing is when an image has a tall aspect ratio: enter image description here

That first item can only be selected when you -mouseDown: directly on the skinny image.
I want to make it so that the item will be selected if you click anywhere in the imageContainerFrame

In IKImageBrowserView, there is a method: -indexOfItemAtPoint. This returns NSNotFound when I click within the cell container frame, but returns the correct index when I click on the skinny image.

I don't think I can override this method to return the appropriate index when the mouse goes down in the cell-- but from what it looks like, that is my only option.

Does anybody know of any ways I could tackle this?

0

There are 0 answers