Re: NsCollectionView Selection
Re: NsCollectionView Selection
- Subject: Re: NsCollectionView Selection
- From: Sandro Noel <email@hidden>
- Date: Tue, 20 Jan 2009 00:59:14 -0500
Graham.
NSbox will not let me set the background color if the Box Type is not
custom,
If I do that I lose the rounded borders. :(
and i can't set the border colors either if the box type is not custom.
do you have a suggestion?
Sandro Noel.
On 19-Jan-09, at 11:24 PM, Graham Cox wrote:
On 20 Jan 2009, at 3:10 pm, Sandro Noel wrote:
But I'm not looking for the lazy approach,
I really want the app to be good looking, I like Mac apps because
they are fancy, I want my app to be fancy too :)
Besides I'm learning, so I might as well learn to do it the right
way :)
that's why i ask :))
So i hear that if i want something to look good i have to subclass
it ?
Can you be more specific about what doesn't look good with the NSBox
approach? Most collection views I've seen (and those I've
implemented myself) use this approach and they look fine. Apple
appear to be adopting a round-cornered selection for standard UI
(such as IKImageBrowserView) and a custom NSBox provides this
functionality perfectly. (Note, depending on your needs you might
find that IKImageBrowserVIew might do what you want - it's higher
level than NSCollectionView and takes care of a lot of the ugly
details for you.).
The only thing I can think of that you might be after is a selection
that contained a gradient or background other than a flat colour
(note NSBox can have a semi-transparent background also). In this
case you'd probably need to subclass.
As for it being a lazy approach, I don't see that. If you want to
spend all your time implementing a selection highlight go ahead, but
most of us have better things to do! Lazy it may (arguably) be, but
it's definitely not the wrong way.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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:
This email sent to email@hidden