• 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
Waking computer from sleep, and looping movies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Waking computer from sleep, and looping movies


  • Subject: Waking computer from sleep, and looping movies
  • From: Mike Margolis <email@hidden>
  • Date: Sun, 14 Oct 2001 01:50:13 -0700

Hey everyone,
I have 2 questions...
One) I am writing an alarm clock application where it would be very useful to be able to control when the computer will wake from sleep. A few years back, I tried to do this in ToolBox, but didn't have much success. Now, I'
m writing a whole new application and it would be great if I could do this.
.. I scoured the Cocoa documentation and could not find any way to do this with Cocoa, and then I looked through Carbon, because I remembered the classic toolbox had the ability to do this. I tried using SetWakeupTimer and SetWUTime,
both in Power.h - and discovered they both did nothing. I checked what PMFeatures returns, and found it returns 0. Mac OS X doesn't currently have a System Preference to control the wakeup time of the computer from sleep or startup from when the computer is powered off... does this mean the Power Manager in OS X doesn't support this yet? I'm running 10.1 and have the newest documentation,
am I missing something?

Two) I am trying to have an NSMovie loop, but no matter what I do it doesn'
t seem to work. I create an NSMovieView, insert the movie in question, and then say [theMovieView setLoopMode:NSQTMovieLoopingPlayback]; This doesn't seem to work, as the movie ends and doesn't repeat. I tried calling this before i added the movie, after i added the movie, even while the movie was playing... it never seems to make the movie loop. I can set the volume,
set the rate, i can do everything but set the looping mode. I then tried to get a message when the movie ended... so i could manually start the movie again, but I could not find any such notifications. Ideas?

Thanks in advance,
Mike Margolis


  • Prev by Date: Open Dialog
  • Next by Date: Re: Displaying an alert box
  • Previous by thread: Re: Cocoa Java vs Swing Java classes
  • Next by thread: GNUstep Database Library?
  • Index(es):
    • Date
    • Thread