Re: NsCollectionView Selection
Re: NsCollectionView Selection
- Subject: Re: NsCollectionView Selection
- From: Graham Cox <email@hidden>
- Date: Tue, 20 Jan 2009 15:24:52 +1100
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