Difference between revisions of "FRScreenSaver 101"

From AwkwardTV
Jump to: navigation, search
m
m (Reverted edits by Itextras (Talk) to last revision by Peoplemover)
 
(9 intermediate revisions by 7 users not shown)
Line 1: Line 1:
[http://www.lemonn-ka.pop3.ru/small/total-eclips/ total eclips] [http://www.teplohead.pop3.ru/description/hp-tc.htm hp tc1000] [http://moniqueleigh.freehostia.com/data/venerupis/ venerupis] [http://chistovskaya.freehostia.com/topic/cerchi-ciclismo/ cerchi ciclismo] [http://cyclique.freehostia.com/content/casablanca-alberghi/ casablanca alberghi e hotel] [http://goer.freehostia.com/description/super-monkey2.htm super monkey ball 2] [http://krazykat1187.freehostia.com/description/home-teatre5/ home teatre wireless] [http://ruwilhel.125mb.com/resources/www-smach.htm www smach down] [http://doublename.125mb.com/scarpe.htm scarpe] [http://www.aneta-spb.pop3.ru/blog/dysney-porno.htm dysney porno] [http://gor22011978.pop3.ru/articles/nightkill/ nightkill] [http://midnightbrave.freehostia.com/frigoriferi-samsung2/ frigoriferi samsung rs 21] [http://moniqueleigh.freehostia.com/data/karen-mcgregor/ karen mcgregor] [http://www.lemonn-ka.pop3.ru/small/patente-a/ patente a punti giurisprudenza] [http://kalahiet.125mb.com/articles/olocausto-roma/ olocausto roma campi di sterminio] [http://midnightbrave.freehostia.com/xxx-comics/ xxx comics] [http://evbailly.125mb.com/www-alitalia/ www alitalia virtual com] [http://ohvoice.125mb.com/web/fori/ fori] [http://www.nadz0r.pop3.ru/new/uomo-del/ uomo del mio tempo] [http://bachenau.125mb.com/masterizzatore-interno.htm masterizzatore interno dvd pioneer] [http://ramangel.125mb.com/topic/mercante-di.htm mercante di venezia] [http://bulopipe.125mb.com/web/pda-bluetooth.htm pda bluetooth] [http://cashdolla.h18.ru/resources/hp-ipaq.htm hp ipaq hw6510] [http://maross.125mb.com/library/midi-suoneria.htm midi suoneria] [http://cyclique.freehostia.com/content/umberta-comi2/ umberta comi milano] [http://ohvoice.125mb.com/web/dj-tommyvee/ dj tommyvee] [http://triniophoeni.h18.ru/lea-bruno/ lea bruno] [http://www.nadz0r.pop3.ru/new/liber-skarby/ liber skarby] [http://www.rei794.pop3.ru/articles/lancia-y.htm lancia y elefantino blu milano] [http://moniqueleigh.freehostia.com/data/paranoid-records/ paranoid records] [http://bulopipe.125mb.com/web/tutti-i.htm tutti i telefonini alcatel] [http://kalahiet.125mb.com/articles/kardia-mou/ kardia mou] [http://maross.125mb.com/library/kaoani.htm kaoani] [http://souya.freehostia.com/small/monaca-santa.htm monaca santa] [http://rimarsh.125mb.com/topic/reporter-ucciso/ reporter ucciso] [http://krazykat1187.freehostia.com/description/nel-bel/ nel bel mezzo di un gelido inverno] [http://www.nadz0r.pop3.ru/new/latte-dolce/ latte dolce e gabbana] [http://www.aneta-spb.pop3.ru/blog/dunzel.htm dunzel] [http://www.sturuntsev.pop3.ru/articles/albergo-ventimiglia/ albergo ventimiglia] [http://souya.freehostia.com/small/temi-foscolo.htm temi foscolo] [http://taedward.125mb.com/description/pompa-dosatrici/ pompa dosatrici] [http://ohvoice.125mb.com/web/huttons-hotel/ huttons hotel] [http://chistovskaya.freehostia.com/topic/sex-secretary/ sex secretary] [http://cyclique.freehostia.com/content/trinity-river/ trinity river] [http://www.aneta-spb.pop3.ru/blog/concessionario-firenze.htm concessionario firenze] [http://svinka.h18.ru/content/bongo-song.htm bongo song] [http://www.chaoticidealism.pop3.ru/blog/genevoix-maurice.htm genevoix maurice] [http://rimarsh.125mb.com/topic/leonardo-caprio/ leonardo caprio] [http://taedward.125mb.com/description/sima-progetto/ sima progetto internet] [http://timo-kiev.freehostia.com/palline-di.htm palline di carta pesta] [http://bulopipe.125mb.com/web/www-affection.htm www affection orn] [http://suhorne.125mb.com/lancia-delta/ lancia delta 1 8] [http://www.tjmclean84.pop3.ru/web/dogeball/ dogeball] [http://www.rei794.pop3.ru/articles/cbr.htm cbr 900 2003] [http://timo-kiev.freehostia.com/toner-ibm.htm toner ibm infoprint 1120] [http://svinka.h18.ru/content/congressi-rianimazione.htm congressi rianimazione neonatale] [http://svinka.h18.ru/content/agla-srl.htm agla srl] [http://cyclique.freehostia.com/content/modelle-brasiliane/ modelle brasiliane nude] [http://kalahiet.125mb.com/articles/porfirina/ porfirina] [http://bachenau.125mb.com/dangerous.htm dangerous] [http://bachenau.125mb.com/pajero-sport.htm pajero sport td] [http://gor22011978.pop3.ru/articles/orlando-shopping/ orlando shopping] [http://souya.freehostia.com/small/gps-palmare6.htm gps palmare bluetooth pocket pc] [http://krazykat1187.freehostia.com/description/vita-trapani/ vita (trapani)] [http://goer.freehostia.com/description/dior-addict.htm dior addict ultra shine] [http://gor22011978.pop3.ru/articles/samarcanda-provincia/ samarcanda (provincia)] [http://taedward.125mb.com/description/msica-salsa/ msica salsa] [http://kalahiet.125mb.com/articles/nomo/ nomo] [http://littleangel1.h18.ru/html/colonna-sonora.htm colonna sonora film honey] [http://reliles.125mb.com/library/hyde-park.htm hyde park hotel london] [http://triniophoeni.h18.ru/fotonovela/ fotonovela] [http://goer.freehostia.com/description/boosh-shoot.htm boosh shoot] [http://littleangel1.h18.ru/html/thousandoaks-ph.htm thousandoaks ph] [http://www.tjmclean84.pop3.ru/web/disneyland-resort/ disneyland resort parigi] [http://goer.freehostia.com/description/silverscreen.htm silverscreen 80] [http://hehayfor.125mb.com/styles/acer-flashstick/ acer flashstick] [http://biwittic.125mb.com/moto-yamaha/ moto yamaha enduro] [http://gimaynar.125mb.com/small/loro-del/ loro del demonio] [http://keniff.125mb.com/topic/baby-rialzo.htm baby rialzo] [http://gor22011978.pop3.ru/articles/snauzer/ snauzer] [http://cashdolla.h18.ru/resources/winagenda.htm winagenda] [http://www.lemonn-ka.pop3.ru/small/california-ascolta/ california ascolta] [http://limepink.h18.ru/small/e-va.htm e va eva] [http://chistovskaya.freehostia.com/topic/gara-con/ gara con le slitte] [http://www.aneta-spb.pop3.ru/blog/www-lecce.htm www lecce it] [http://souya.freehostia.com/small/dolci-di1.htm dolci di roma antica] [http://doublename.125mb.com/musik-arab.htm musik arab mp3] [http://svinka.h18.ru/content/scientifico-barcellona.htm scientifico barcellona] [http://www.teplohead.pop3.ru/description/porsche.htm porsche 987] [http://chistovskaya.freehostia.com/topic/lgs/ lgs] [http://souya.freehostia.com/small/diffusore-passivo.htm diffusore passivo chitarra] [http://gimaynar.125mb.com/small/jar-ule/ jar ule wonder] [http://chistovskaya.freehostia.com/topic/kettler-vogatore/ kettler vogatore] [http://chistovskaya.freehostia.com/topic/forel/ forel] [http://krazykat1187.freehostia.com/description/tauch-and/ tauch and go] [http://littleangel1.h18.ru/html/golf.htm golf 2003] [http://www.prairiesky.pop3.ru/view/ck-one/ ck one] [http://www.nadz0r.pop3.ru/new/paris-hilton/ paris hilton in video] [http://chistovskaya.freehostia.com/topic/dlink-dbt3/ dlink dbt120 usb bluetooth adapter] [http://chistovskaya.freehostia.com/topic/ati-radeon65/ ati radeon 9200 schede video] [http://gor22011978.pop3.ru/articles/loriginale/ loriginale] [http://krazykat1187.freehostia.com/description/carne-lista/ carne lista prezzi] [http://krazykat1187.freehostia.com/description/camionisti/ camionisti] [http://goer.freehostia.com/description/the-sims21.htm the sims fuori tutti obbiettivi] [http://goer.freehostia.com/description/vita-col.htm vita col padre] [http://www.wildhand.pop3.ru/topic/coello-y.htm coello y ochoa antonio] [http://kalahiet.125mb.com/articles/busta-christine/ busta christine] [http://goer.freehostia.com/description/nomi-stranieri.htm nomi stranieri maschili e femminili] [http://souya.freehostia.com/small/fiws.htm fiws] [http://keniff.125mb.com/topic/o-zone.htm o zone teledysk] [http://chistovskaya.freehostia.com/topic/l-ritchie/ l ritchie] [http://www.prairiesky.pop3.ru/view/nikon-/ nikon 50 d] [http://souya.freehostia.com/small/shemale-fuck1.htm shemale fuck girl] [http://gimaynar.125mb.com/small/nike-wmns/ nike wmns air max 97] [http://timo-kiev.freehostia.com/www-blue.htm www blue net] [http://www.nadz0r.pop3.ru/new/delonghi-stiro/ delonghi stiro meglio] [http://goer.freehostia.com/description/assicurazione-urbino.htm assicurazione urbino] [http://doublename.125mb.com/chevaliers-de.htm chevaliers de la table ronde] [http://ramangel.125mb.com/topic/sergio-bernardini.htm sergio bernardini web design] [http://ruwilhel.125mb.com/resources/nikon-coolscan.htm nikon coolscan 9000 ed] [http://moniqueleigh.freehostia.com/data/jennifer-anniston/ jennifer anniston nude] [http://www.rei794.pop3.ru/articles/programma-jpg.htm programma jpg] [http://ramangel.125mb.com/topic/taniservice.htm taniservice] [http://www.sturuntsev.pop3.ru/articles/el-gas/ el gas de camisea] [http://kiwibttrflyt.h18.ru/directory/cartuccia-lexmark.htm cartuccia lexmark z24] [http://biwittic.125mb.com/the-police/ the police walking on the moon] [http://ohvoice.125mb.com/web/villaggi-terrasini/ villaggi terrasini] [http://www.prairiesky.pop3.ru/view/lpd/ lpd 443] [http://taedward.125mb.com/description/hp-pc/ hp pc media center] [http://biwittic.125mb.com/deumidificatore-dec/ deumidificatore dec 12] [http://rimarsh.125mb.com/topic/www-catania/ www catania it] [http://bachenau.125mb.com/robie-williams.htm robie williams radio] [http://gimaynar.125mb.com/small/annuncio-matrimoniali/ annuncio matrimoniali ragazze dell est] [http://souya.freehostia.com/small/rmx-easy.htm rmx easy compress] [http://biwittic.125mb.com/maturita-titoli/ maturita titoli prima prova] [http://timo-kiev.freehostia.com/shivaree-goodnight.htm shivaree goodnight moon] [http://evbailly.125mb.com/sesto-sento/ sesto sento download] [http://chistovskaya.freehostia.com/topic/architetto-verona/ architetto verona] [http://gealbrig.125mb.com/library/opti-sound.htm opti sound card] [http://rimarsh.125mb.com/topic/maco-s/ maco s] [http://ramangel.125mb.com/topic/masterizzatori-iomega.htm masterizzatori iomega] [http://moniqueleigh.freehostia.com/data/air-filter/ air filter] [http://biwittic.125mb.com/allison-siena/ allison siena] [http://cyclique.freehostia.com/content/hp48/ hp 21] [http://chistovskaya.freehostia.com/topic/articol-medicali/ articol medicali a firenze] [http://www.terry-a-boot.pop3.ru/content/stajla/ stajla] [http://midnightbrave.freehostia.com/kof1/ kof2003] [http://evbailly.125mb.com/la-poliziotta/ la poliziotta film dvd] [http://maross.125mb.com/library/webchat-lesbo.htm webchat lesbo] [http://bachenau.125mb.com/repubblica-dominicana.htm repubblica dominicana e i suoi hotel] [http://ohvoice.125mb.com/web/ibm/ ibm 206] [http://www.lemonn-ka.pop3.ru/small/download-dvx/ download dvx films] [http://www.nadz0r.pop3.ru/new/canalsat-fr/ canalsat fr key] [http://midnightbrave.freehostia.com/le-canzoni7/ le canzoni dei roteo] [http://www.kitten130999.pop3.ru/view/giordana.htm giordana] [http://limepink.h18.ru/small/telefono-palmare.htm telefono palmare microsoft] [http://www.fuzps.pop3.ru/content/asus-an/ asus a3500n] [http://gealbrig.125mb.com/library/memento-fiscale.htm memento fiscale] [http://kiwibttrflyt.h18.ru/directory/salvatore-pugliatti.htm salvatore pugliatti] [http://limepink.h18.ru/small/succhio.htm succhio] [http://cyclique.freehostia.com/content/lc-pe2/ lc 37p50e] [http://cyclique.freehostia.com/content/falda/ falda] [http://maross.125mb.com/library/nokia-.htm nokia 6600 grey] [http://gealbrig.125mb.com/library/stripsaver.htm stripsaver] [http://www.sturuntsev.pop3.ru/articles/nintendo-/ nintendo 64 roms] [http://timo-kiev.freehostia.com/telefono-e.htm telefono e fax] [http://www.prairiesky.pop3.ru/view/tiffany-teen/ tiffany teen] [http://www.fuzps.pop3.ru/content/sex-bombe/ sex bombe] [http://hehayfor.125mb.com/styles/clitoride-gigante/ clitoride gigante] [http://moniqueleigh.freehostia.com/data/opel-classicparts/ opel classicparts com] [http://kalahiet.125mb.com/articles/amore-pagano/ amore pagano] [http://timo-kiev.freehostia.com/gioco-lotto.htm gioco lotto] [http://gor22011978.pop3.ru/articles/collant-tacchi/ collant tacchi] [http://timo-kiev.freehostia.com/cuffie-altec.htm cuffie altec] [http://hehayfor.125mb.com/styles/gunther-levi/ gunther levi] [http://kiwibttrflyt.h18.ru/directory/sana.htm sana] [http://ramangel.125mb.com/topic/rubby-perez.htm rubby perez] [http://www.sturuntsev.pop3.ru/articles/eucaristia/ eucaristia] [http://timo-kiev.freehostia.com/lagarina-val.htm lagarina val] [http://reliles.125mb.com/library/compiletion.htm compiletion] [http://www.aneta-spb.pop3.ru/blog/letti-giapponesi.htm letti giapponesi] [http://timo-kiev.freehostia.com/holiday-accommodation.htm holiday accommodation noosa] [http://ruwilhel.125mb.com/resources/canton-le.htm canton le 170] [http://www.fuzps.pop3.ru/content/kensington-cable/ kensington cable] [http://taedward.125mb.com/description/shox-nike/ shox nike] [http://doublename.125mb.com/misty.htm misty] [http://ramangel.125mb.com/topic/mezzi-pubblici.htm mezzi pubblici ecologici] [http://midnightbrave.freehostia.com/legname/ legname] [http://doublename.125mb.com/video-violenze.htm video violenze sessuali in casa] [http://moviemania0.h18.ru/nostalgia-canaglia/ nostalgia canaglia] [http://ruwilhel.125mb.com/resources/valori-rottame.htm valori rottame in ferro] [http://www.devochek.pop3.ru/directory/cavagliere-nero.htm cavagliere nero] [http://limepink.h18.ru/small/lscio.htm lscio] [http://cyclique.freehostia.com/content/le-termiti/ le termiti] [http://kalahiet.125mb.com/articles/accessori-ixus/ accessori ixus 40] [http://cyclique.freehostia.com/content/cornici-foto/ cornici foto] [http://prihodnaja.pop3.ru/data/keys-in/ keys in viterbo] [http://svinka.h18.ru/content/cartelle-sospese.htm cartelle sospese esselte] [http://www.kitten130999.pop3.ru/view/freestyle-sci.htm freestyle sci] [http://moniqueleigh.freehostia.com/data/gioco-delle2/ gioco delle differenze] 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.  
Line 5: Line 5:
 
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.
 
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===
+
==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.
 
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.
 +
"RSSVisualizerSaver"
  
===Creating the Plugin===
+
==Creating the Plugin==
  
 
Open InfoPlist.strings (for English) and make sure CFBundleName accurately reflects your new screen saver name:
 
Open InfoPlist.strings (for English) and make sure CFBundleName accurately reflects your new screen saver name:
Line 15: Line 16:
 
<pre>CFBundleName = "RSS Visualizer";</pre>
 
<pre>CFBundleName = "RSS Visualizer";</pre>
  
====The Main Appliance Class====
+
===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.
 
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.
Line 66: Line 67:
 
</pre>
 
</pre>
  
===Building the Plugin===
+
==Building the Plugin==
====Build Settings====
+
===Build Settings===
  
 
Everything is the same, except:
 
Everything is the same, except:
Line 73: Line 74:
 
* set the Wrapper Extension to <tt>frss</tt>, not <tt>frappliance</tt>.
 
* set the Wrapper Extension to <tt>frss</tt>, not <tt>frappliance</tt>.
  
====Building====
+
===Building===
 
Click Build. The compiled screen saver will appear in <tt>build/Debug/RSSVisualizerSaver.frss</tt>.
 
Click Build. The compiled screen saver will appear in <tt>build/Debug/RSSVisualizerSaver.frss</tt>.
  
===Running the Plugin===
+
==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:
 
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:
  

Latest revision as of 08:18, 30 December 2012

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. "RSSVisualizerSaver"

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.

Building

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!

Congratulations...again!

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:

http://www.zugakousaku.com/index.php?m=project