• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Screensaver
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screensaver


  • Subject: Re: Screensaver
  • From: Scott Ellsworth <email@hidden>
  • Date: Fri, 20 Jan 2006 15:25:16 -0800


On Jan 20, 2006, at 3:11 PM, Michael Curtis wrote:

I have always wanted to make a screensaver for os x that replicated the After Dark screensaver module that allowed you to put up your own quotes. I have been learning some objective-c and cocoa with the help of some books (Programming in Objective-c and Cocoa programming for Mac OS X), but I can't seem to find much at all on screensavers.

If you have those books, you have what you need.

Start with a new Cocoa screen saver project in XCode.

You then need to implement the ScreenSaverView class' methods. The most important methods are drawRect:, much like any other NSView, and animateOneFrame:

Take a look at the Hillegas book's discussion on BigLetterView for the kinds of things you can do in drawRect. Once you get some content on the screen, look at the docs for animateOneFrame: for how to get motion.

I believe that there is an alternative now, in that Quartz Composer can do much with animated strings on the screen, all by just setting propreties rather than writing code. If you can use a quartz composer view as a screensaver, you might be very close to done.

ScreenSaverView is documented at <http://developer.apple.com/ documentation/UserExperience/Reference/ScreenSaver/ObjC_classic/ index.html>

Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Screensaver (From: Michael Curtis <email@hidden>)

  • Prev by Date: Re: Screensaver
  • Next by Date: Re: Screensaver
  • Previous by thread: Re: Screensaver
  • Next by thread: Re: Screensaver
  • Index(es):
    • Date
    • Thread