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: Creating a .saver bundle from a Quartz project



There are a number of different ways to do this. Possibly the easiest is, I think it's possible, to make a QCView a subView of your Screensaver view. There is also some sample code around on developer.apple.com called something like Cocoa OpenGL Screensaver although I'm not sure which section it is in (currently offline) that may give you some ideas. This was my starting point.

The method I finally settled on is to add an NSOpenGLView subclass as a subView of the ScreenSaverView and use a QCRenderer to draw into the NSOpenGLView's context.

// Setup
[[QCRenderer alloc] initWithOpenGLContext:[glView openGLContext] pixelFormat:[glView pixelFormat] file:filePath];
..........

// drawing time
[quartzRenderer renderAtTime:currentTime arguments:eventAttributes];
.....
[[glView openGLContext] flushBuffer];
......
[glView setNeedsDisplay:YES];


I'm definitely not an experienced Cocoa developer and have very little experience of OpenGL. The project is nearing completion and so is becoming untidy and the commenting lacking. So I can't say I feel very confident to post a tutorial or source.

There is a quite nice site with a series of tutorials, each dealing with different stages of Cocoa/OpenGL developement at:
http://zerobyzero.ca/~ktatters/
Although not dealing with what you want to accomplish immediately it looks like a good resource for  background material on Cocoa and OpenGL integration.

Benjamin




On 29 Nov 2005, at 19:59, Christopher Aloi wrote:

Steven - I have been looking for a resource like this for a few

months.  If you have any luck - please let me know.


Thanks,


Chris


On 11/29/05, Steven Halford <email@hidden> wrote:

Hi List,


I've created a screensaver that I want to package up in a screensaver

bundle in Xcode so that the end user cannot (easily) edit my quartz

composition and I want to eventually add a config sheet.




http://www.electricdecember.org is an online advent calendar.
24 days of multi-media digital distractions made by diverse contributors from Bristol, UK.

Benjamin Miller, Digital Developer
Watershed Media Centre
1 Canon's Road, Harbourside, Bristol, UK. BS1 5TX
t: +44 (0)117 927 6444, f: +44(0)117 921 3958
iChat/AIM: email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to 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.