Difference between revisions of "FRScreenSaver 101"

From AwkwardTV
Jump to: navigation, search
Line 1: Line 1:
[http://sportsgal25.iespana.es/blog/quotidiano-la.htm quotidiano la provincia] [http://dafredri.angelfire.com/articles/intimo-per/ intimo per donna] [http://sportsgal25.iespana.es/blog/la-vita.htm la vita intima di marcantonio e cleopatra] [http://cutterjon.isuisse.com/content/scoria.htm scoria] [http://borg77.iespana.es/styles/www-adria/ www adria net] [http://quarantined-x.iespana.es/view/la-tierna/ la tierna] [http://ana-princes.iespana.es/new/hp-a/ hp 45a] [http://sar-iong.iespana.es/text/kuens.htm kuens] [http://masteriii.isuisse.com/acquisto-gioco.htm acquisto gioco pc] [http://da-kosta.iespana.es/directory/samsung-vpd.htm samsung vpd101] [http://miki-hana.isuisse.com/description/cazzo-di/ cazzo di colore] [http://dafredri.angelfire.com/articles/sw-cd/ sw cd1] [http://anryg.iespana.es/lib/villaggio-vacanza.htm villaggio vacanza ibiza] [http://brkim.angelfire.com/resources/gwen-stefani.htm gwen stefani nuove foto] [http://miki-hana.isuisse.com/description/moto-suzuki/ moto suzuki gsx] [http://da-kosta.iespana.es/directory/giggi-finizio.htm giggi finizio] [http://samuiel.isuisse.com/html/pavimento-graniglia/ pavimento graniglia] [http://sharkymel.isuisse.com/web/maserati-ghibli/ maserati ghibli] [http://ms-dirtnap.ibelgique.com/description/testi-sean/ testi sean paul] [http://anryg.iespana.es/lib/longford.htm longford] [http://salpukka.isuisse.com/lib/canonscan-lide/ canonscan lide 20] [http://annie-fialochka.ibelgique.com/lib/eros-comix.htm eros comix] [http://flameshes.isuisse.com/topic/radio-mp/ radio mp3 creative lettori] [http://anryg.iespana.es/lib/medion-mp.htm medion mp3 lettori] [http://vanisky-love.iespana.es/resources/nuovo-sonyericsson/ nuovo sonyericsson] [http://billy-brown.isuisse.com/blog/vaio-vgn.htm vaio vgn fs215m] [http://levirgule.iespana.es/scopa-elettrica/ scopa elettrica hepa] [http://ofdays.isuisse.com/library/violi/ violi] [http://night-sacrifice.isuisse.com/resources/le-avventure.htm le avventure del barone di munchausen] [http://bet-deratos.iespana.es/topic/finanziamento-cannes/ finanziamento cannes] [http://bet-deratos.iespana.es/topic/ladri-di/ ladri di futuro] [http://songsoutofkey.isuisse.com/view/tuttosessogratis-net.htm tuttosessogratis net] [http://callie-avalon.iespana.es/eight-easy/ eight easy steps] [http://killbox.ibelgique.com/html/i-cavalieri.htm i cavalieri dello zodiaco vol 06] [http://quarantined-x.iespana.es/view/jurassic-park/ jurassic park all] [http://zelankom.iespana.es/dinky/ dinky] [http://ohsoemo22a.ibelgique.com/library/calzaturificio-panda.htm calzaturificio panda] [http://glchinsy.angelfire.com/topic/laplink-pcmover/ laplink pcmover] [http://levirgule.iespana.es/suzuki-vitara/ suzuki vitara usato] [http://annie-fialochka.ibelgique.com/lib/nokia-mm.htm nokia mm 9500] [http://sharkymel.isuisse.com/web/pentagramma/ pentagramma 10] [http://ohsoemo22a.ibelgique.com/library/bt-gps.htm bt77 gps] [http://sarahxion.ibelgique.com/blog/navigatori-satellitari.htm navigatori satellitari tomtom go 500] [http://sharkymel.isuisse.com/web/metallica-video/ metallica video] [http://sharkymel.isuisse.com/web/super-merk/ super merk2] [http://jkc42.ibelgique.com/umts-cellulari.htm umts cellulari onda] [http://callie-avalon.iespana.es/gta/ gta 2] [http://nifred-la.isuisse.com/resources/un-anno/ un anno di piu] [http://ms-dirtnap.ibelgique.com/description/appartamento-verona/ appartamento verona] [http://songsoutofkey.isuisse.com/view/quien-queres.htm quien queres tu] [http://jkc42.ibelgique.com/birthday-gift.htm birthday gift] [http://night-sacrifice.isuisse.com/resources/paradiso-beach.htm paradiso beach alan sorrenti] [http://flameshes.isuisse.com/topic/california-dreaming/ california dreaming telechargement] [http://jkc42.ibelgique.com/ricerca-video.htm ricerca video dell americano decapitato] [http://zigz-kom.isuisse.com/my-heart/ my heart will] [http://glchinsy.angelfire.com/topic/hamlet-box/ hamlet box esterno 3 5 usb 2 0 firewire] [http://vanisky-love.iespana.es/resources/win-search/ win search] [http://annie-fialochka.ibelgique.com/lib/orologio-altimetro.htm orologio altimetro casio] [http://iaa.ibelgique.com/blog/the-ring.htm the ring boxset] [http://stdamin.angelfire.com/resources/verbatimcdr-printable.htm verbatimcdr printable] [http://you-edicks.iespana.es/web/crazi-taxi.htm crazi taxi] [http://brvarcoe.angelfire.com/styles/icq-down.htm icq down load] [http://the-ile.iespana.es/lockness/ lockness] [http://hexa1598.ibelgique.com/argyroneta/ argyroneta] [http://dafredri.angelfire.com/articles/fumetti-erotici/ fumetti erotici] [http://akyla-pera.isuisse.com/text/kanon.htm kanon] [http://grizs.iespana.es/articles/portoni-tagliafuoco.htm portoni tagliafuoco industriali] [http://ravenmax.iespana.es/cobra-gb.htm cobra 1gb] [http://song-love.iespana.es/content/spankox-to/ spankox to the club] [http://akyla-pera.isuisse.com/text/ddr-mhz.htm ddr2 533mhz] [http://bet-deratos.iespana.es/topic/escuzione-ostaggio/ escuzione ostaggio americano] [http://you-edicks.iespana.es/web/amd-venice.htm amd64 venice] [http://akyla-pera.isuisse.com/text/ati-radeon.htm ati radeon x300] [http://iaa.ibelgique.com/blog/hyundai-tucson.htm hyundai tucson 20 crdi dynamic] [http://brvarcoe.angelfire.com/styles/bubble-bobble.htm bubble bobble nostalgie] [http://sarahxion.ibelgique.com/blog/zaino-moby.htm zaino moby 4] [http://add-clab.isuisse.com/styles/agriturismo-a.htm agriturismo a monterotondo] [http://scsheppe.angelfire.com/articles/allegrini-recioto.htm allegrini recioto] [http://hexa1598.ibelgique.com/passeggino-freestyle/ passeggino freestyle] [http://stdamin.angelfire.com/resources/u-lg.htm u8330 lg] [http://epbristo.angelfire.com/online-i/ online i siti di electronic arts italia] [http://mentalquicksand.ibelgique.com/library/isole-del.htm isole del mediterraneo] [http://marebeck.angelfire.com/new/caccia-alluomo/ caccia alluomo] [http://da-kosta.iespana.es/directory/renato-pozzeto.htm renato pozzeto] [http://vanisky-love.iespana.es/resources/audio-key/ audio key 256mb] [http://girlwithacurl.ibelgique.com/small/lg-fp.htm lg f700p] [http://iaa.ibelgique.com/blog/lotte-di.htm lotte di mostri] [http://add-clab.isuisse.com/styles/sexy-sexy.htm sexy sexy photo] [http://re-nrevival.isuisse.com/view/finanza-borsa.htm finanza borsa] [http://songsoutofkey.isuisse.com/view/la-moglie.htm la moglie indiana] [http://anryg.iespana.es/lib/jaguar-varese.htm jaguar varese] [http://gagamgirl.ibelgique.com/view/maestre/ maestre] [http://mubathsh.angelfire.com/text/creative-d.htm creative 250d 2 1] [http://eupnea.ibelgique.com/paltrow-nuda/ paltrow nuda] [http://borg77.iespana.es/styles/hp-pavillion/ hp pavillion amd] [http://sarahxion.ibelgique.com/blog/torino-euro.htm torino euro motel] [http://billy-brown.isuisse.com/blog/totti-video.htm totti video pepsi] [http://marebeck.angelfire.com/new/the-blu/ the blu it] [http://anryg.iespana.es/lib/torino-.htm torino  roma] [http://nifred-la.isuisse.com/resources/marito-cuckold/ marito cuckold] Finally the screen saver problem has been solved too!  
Finally the screen saver problem has been solved too!  
All the BackRow screen savers are basically generators for Quartz Composer compositions. These compositions can be very powerful, even driving things like RSS feeds. In fact, that's the example we'll use.  
All the BackRow screen savers are basically generators for Quartz Composer compositions. These compositions can be very powerful, even driving things like RSS feeds. In fact, that's the example we'll use.  

Revision as of 06:44, 10 September 2007

Finally the screen saver problem has been solved too!

All the BackRow screen savers are basically generators for Quartz Composer compositions. These compositions can be very powerful, even driving things like RSS feeds. In fact, that's the example we'll use.

Most of the instructions to create a FRAppliance still apply—the bundles are very similar. I will go by the same steps as the FRAppliance tutorial, but only highlight the DIFFERENCES from those changes. Please review FRAppliance_101 to reference those steps.

Making the Project

First, you'll want a more useful name. Instead of "HelloWorld", let's call it "RSSVisualizerSaver". Create a new Cocoa Bundle project with this name.

Creating the Plugin

Open InfoPlist.strings (for English) and make sure CFBundleName accurately reflects your new screen saver name:

CFBundleName = "RSS Visualizer";

The Main Appliance Class

Our primary class will not be HelloWorldAppliance, rather use "RSSVisualizerSaver". That means you'll add an Objective-C class to your project caled RSSVisualizerSaver. Don't forget to check "Also create RSSVisualizerSaver.h" in Xcode.

Open RSSVisualizerSaver.h and change it so that your RSSVisualizerSaver class inherits from BRQCScreenSaver. Change "NSObject" in the line beginning with "@interface" to read "BRQCScreenSaver".

Make sure you import the BackRow framework.

You'll want to add the className class method to RSSVisualizerSaver.m—screen savers need to bypass their own whitelists too. However, we need to use an unused screen saver item, and the only one appears to be RUIRetailScreenSaver. Folks are working on subverting the whitelists, so stay tuned for that. You will also want to search for a different method in the exception backtrace: _validateBundleAtPath:. Here's the full code to place into RSSVisualizerSaver.m, instead of the one defined by the Appliance instructions.

// Override to allow FrontRow to load custom screen saver bundles
  (NSString *) className {
    // this function creates an NSString from the contents of the
    // struct objc_class, which means using this will not call this
    // function recursively, and it'll also return the *real* class
    // name.
    NSString * className = NSStringFromClass( self );
	// new method based on the BackRow NSException subclass, which conveniently provides us a backtrace
	// method!
	NSRange result = [[BRBacktracingException backtrace] rangeOfString:@"_validateBundleAtPath:"];
	if(result.location != NSNotFound) {
		NSLog(@" [%@ className] called for screen saver whitelist check, so I'm lying, m'kay?", className);
		className = @"RUIRetailScreenSaver";
	return className;

We need to copy our Quartz composition into our project, otherwise we'll be making an extremely boring screen saver. First, you'll want to copy a composition into your project. Copy this file from your Mac OS X system:

/System/Library/Screen\ Savers/RSS Visualizer.qtz

into your project folder. Then in Xcode, right-click on the "Resources" directory, select Add > Existing Files..., and select RSS Visualizer.qtz from your project folder. Make sure it is added to your target.

Back to the code. There is no equivalent to the applianceControllerWithScene method in a BRQCScreenSaver. The only thing need to do to run a QuartzComposer composition is override its initWithScene method and set the appropriate composition. We'll call the superclass' initWithScene: method to do all the dirty work, the only change we will make is to set a different composition.

- (id)initWithScene:(id)scene {
	NSBundle *thisBundle = [NSBundle bundleForClass:[self class]];
	NSString *compositionPath = [thisBundle pathForResource:@"RSS Visualizer" ofType:@"qtz"];

	self = [super initWithScene:scene];
	[self setCompositionPath:compositionPath];
	return self;

Building the Plugin

Build Settings

Everything is the same, except:

  • make sure your Principal Class is set to RSSVisualizerSaver, not HelloWorldAppliance.
  • set the Wrapper Extension to frss, not frappliance.


Click Build. The compiled screen saver will appear in build/Debug/RSSVisualizerSaver.frss.

Running the Plugin

You'll want to copy your built copy to the correct folder. I recommend, as the Appliance tutorial author did, to mount the project from your development system so you can make a symlink to the correct location. Copy or symlink your built project to:

/System/Library/CoreServices/Finder.app/Contents/Screen Savers

Kill Finder, then navigate to Settings > Screen Savers. Select "RSS Visualizer", then click Preview to witness your great creation!


Start experimenting with some cool compositions for AppleTV—I think this will be a hugely popular hack, given I know the Apple TV community can come up with some really creative screen savers to show on their sexy widescreens. :)

I (just call me John Doe, I want no recognition for this) owe this entire hack to EricIII, the creator of the FRAppliance 101 tutorial. Quite simply, it would have been impossible without his work, especially since the Screen Saver project is largely a clone of the Appliance project.

Some pretty compositions can be found here: