~/Library/Screen Savers
folder? If so, you can make a symbolic link that points to your screen saver bundle, and that will automatically get used whenever you engage the screen saver engine. e.g.
% cd ~/Library/Screen Savers % ln -s ~/Projects/MonkeySaver/build/Debug/MonkeySaver.saver .
NSBundle *bundle; NSString *path; bundle = [NSBundle bundleForClass: [self class]]; path = [bundle pathForResource: @"atomsymbol" ofType: @"jpg"]; image = [[NSImage alloc] initWithContentsOfFile: path];
Targets
pane in Project Builder
Build Settings
tab
Product Name
under General Settings
~/Library/Preferences/ByHost
directory. The name of the file is the name that you pass to defaultsForModuleWithName:
, followed by
.someBigNumber.plist
.
So, on my machine,
userPrefs = [ScreenSaverDefaults defaultsForModuleWithName: @"BWDrip"];creates a file
/Users/bork/Library/Preferences/ByHost/BWDrip.0003931024a6.plist
% /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background &
(all one command)