Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: NSMatrix, NSImageCell and selection indicator



I'm not drawing the image, I'm using NSImageCell initImageCell and
putting the Cell into the matrix. NSButtonCell does not achieve the
desired look either. I want something akin to an iPhoto/Aperture
thumbnail browser, but I do not need resizing. I just need the
selected image to have a selected/focus/border indicator around it
without adjusting the size of the image. I'm afraid NSMatrix isn't
capable and I'll end up writing a custom view. Bleh.

On 12/18/06, Matt Neuburg <email@hidden> wrote:
On Sun, 17 Dec 2006 17:35:04 -0600, "David Holmes" <email@hidden>
said:
>I have an NSMatrix subclass that I am adding NSImageCells to at
>runtime. I am unable to find a way to indicate an image is selected
>when clicked on. I can get the selected cell through target and
>action, but have tried highlight, border, focus without success. I
>would just like the selected image to have some indication that it is
>selected. Any help would be appreciated.

Simply redraw the image in a manner that suggests selectedness. Or, use a
button cell instead of an image cell, if you want to take advantage of the
built-in redrawing. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: NSMatrix, NSImageCell and selection indicator (From: Matt Neuburg <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.