• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NsCollectionView Selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NsCollectionView Selection


  • Subject: Re: NsCollectionView Selection
  • From: Sandro Noel <email@hidden>
  • Date: Tue, 20 Jan 2009 00:45:51 -0500

Graham.

I did not mean Lazy in an offensive way :)
I meant it as I want to learn the real stuff and understand how it works.
The documentation is hefty and sometimes confusing, so I ask for advice :)


I do want a gradient semi-transparent look, it find it sleek.
besides once it's designed, I can reuse, so to me it's not a waste of time.


I'll give a closer look at the NSBox, see what I can pull out of it.
If I can subclass the NSBox and have it draw a gradient then that would be ok for me.


Thank you Graham.

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


References: 
 >NsCollectionView Selection (From: Sandro Noel <email@hidden>)
 >Re: NsCollectionView Selection (From: Graham Cox <email@hidden>)
 >Re: NsCollectionView Selection (From: Sandro Noel <email@hidden>)
 >Re: NsCollectionView Selection (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: ObjC in time-critical parts of the code
  • Next by Date: Re: NsCollectionView Selection
  • Previous by thread: Re: NsCollectionView Selection
  • Next by thread: Re: NsCollectionView Selection
  • Index(es):
    • Date
    • Thread