Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Spike099

macrumors regular
Original poster
Feb 18, 2007
143
0
Canada
Has anyone seen any examples on implementing coverflow in there apps? I think coverflow looks amazing and would love to put something like that in my app. Maybe this is something Apple will make available to developers in Leopard?
 

Spanky Deluxe

macrumors demi-god
Mar 17, 2005
5,282
1,745
London, UK
I think its going to be part of core animation for easy use. Maybe a developer with leopard installed can answer this a bit more though. :)
 

yagran

macrumors 6502a
Jan 8, 2007
718
2
Brighton, East Sussex, UK
yup. there is indeedy a coverflow api...

its easy as it works like an old file tree view...drag n drop...its crazy good.

havent figured out how to customize it too much yet tho.
 

Spike099

macrumors regular
Original poster
Feb 18, 2007
143
0
Canada
yup. there is indeedy a coverflow api...

its easy as it works like an old file tree view...drag n drop...its crazy good.

havent figured out how to customize it too much yet tho.

Ohhh my. I'm excited for this. Is it possible to download Leopard from Apple with a student ADC membership?
 

whooleytoo

macrumors 604
Aug 2, 2002
6,607
716
Cork, Ireland.
I know you didn't ask for this advice, but I'm such a generous person I'll offer it anyway :)p!!)

Please don't use CoverFlow in your application unless it's being used as a browsing mechanism. I was a bit surprised when Jobs used it as an app launcher, a task to which it's very poorly suited. It's a very good browsing UI, but a poor UI when you know which file/app you want to open.

Still, it's good to see it's open as an API, I hadn't heard that.
 

Spanky Deluxe

macrumors demi-god
Mar 17, 2005
5,282
1,745
London, UK
I have to say, I don't think very much of this coverflow lark either and see it only as a gimmick. I spent hours, if not days, going through my itunes library adding all the album artwork because I wanted to use coverflow. The coolness wore off quickly. I don't think there's any better way to display information than a thumbnail view and I really wish iTunes had one.
If a dev wants to add coverflow to an app because its a bit of a buzzword right now for marketing then sure go for it but for usability it really sucks imo.
 

MongoTheGeek

macrumors 68040
I have to say, I don't think very much of this coverflow lark either and see it only as a gimmick. I spent hours, if not days, going through my itunes library adding all the album artwork because I wanted to use coverflow. The coolness wore off quickly. I don't think there's any better way to display information than a thumbnail view and I really wish iTunes had one.
If a dev wants to add coverflow to an app because its a bit of a buzzword right now for marketing then sure go for it but for usability it really sucks imo.

Its seems to me that a lot of the delay in releasing Leopard was to get Apple Frameworks polished enough to release to developers instead of leaving them for internal use only.
 

yagran

macrumors 6502a
Jan 8, 2007
718
2
Brighton, East Sussex, UK
id just like to add that there is a circular mode in the api.
so it would look more like a carousel.

also i would love to see apple considering launching a web based version of some of its api's, i guess for iphone development, the idea eing that they are medium sized libraries which can be called as objects from a webpage. It would be a very cool idea, but it would only work on apple computers meaning you would need either a very discreete set of clients viewing your site, or you would need a detection and swap system.

still kudos to apple if this ends up getting released but i see it being an iPhone 2.0 time thing, and being revealed maybe WWDC 08 or 09..i heard rumblings of this type of thing
 

Spike099

macrumors regular
Original poster
Feb 18, 2007
143
0
Canada
I know coverflow in iTunes isn't that huge. However I actually really like it. I find I use my library more than anything else now. Which makes me browse all my music reminding my what is actually in there. I have used coverflow for iTunes for many months now and can not see myself going back.

As for my app. I would use coverflow purely for browsing a few to maybe a 100 pictures. I could see it been a very nice feature in my app. And that carousel idea is just as sweet. I can't wait to try and implement those.
 

HungrySeacow

macrumors regular
Jan 11, 2006
137
1
West Palm Beach
yup. there is indeedy a coverflow api...

its easy as it works like an old file tree view...drag n drop...its crazy good.

havent figured out how to customize it too much yet tho.

I tried looking for the API, but can't find it. Is this part of leopard, or is there one floating around on the web for 10.4?
 

CoreWeb

macrumors 6502
Mar 2, 2007
456
0
Edge of reason
To implement something like CoverFlow would be difficult, in my opinion, but doable. I haven't dabbled with OpenGL for quite awhile, but here's a basic rundown of the kind of things I think would have to happen:
  1. Have a class "Layer"
  2. Have the layer class generate a square in 3D space
  3. Have the layer class texture the square with a defined image
  4. Have a positioning routine
  5. The positioning routine will go through all the images and position them along the x axis, and rotate them around the y-axis to make them face right, forward, or left
  6. (The layer class would automatically update the OpenGL portions when its location properties were changed)
  7. Some method of capturing mouse input would be used, and controls (scrollbar, etc) would be drawn. The controls might actually be able to be drawn in Cocoa or Carbon and be placed above OpenGL, but I don't know if that would work. Otherwise, they would be additional OpenGL layers.
  8. Add animation to the "Layer" class. Make the set X and set rotation Y functions animate instead of simply changing. This is complicated as for performance reasons it would be a good idea to make these events happen in a separate thread. You would have to also make the previous move operations be canceled whenever calling a new one.
  9. Add a bit of reflection. This can be done through the "Layer" class (it would create a second OpenGL piece of geometry, which would contain a flipped version of the image.)
  10. If you can do that much, you can probably figure out what all else needs to be done to make it look perfect.

Note that all of this is basically what Core Animation does. Though it won't do the "positioning" part (you tell it where to place the items) it supposedly handles all or most of the OpenGL.
 

Cromulent

macrumors 604
Oct 2, 2006
6,802
1,096
The Land of Hope and Glory
I know coverflow in iTunes isn't that huge. However I actually really like it. I find I use my library more than anything else now. Which makes me browse all my music reminding my what is actually in there. I have used coverflow for iTunes for many months now and can not see myself going back.

I agree. I very rarely use playlists in iTunes as I can scroll incredibly quickly through my entire music collections (some 60GBs worth) and just get a feel of everything I have. Sometimes I end up spotting something which I have not heard in a while and stick it on, makes listening to music with iTunes a little more interesting for me at least.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.