f



[Cocoa] sound and video 'isPlaying' don't work

I have a complicated program which does pauses using usleep,
waits for user clicks and keys, and plays NSSound and
NSMovies at various intervals.

My sounds and movies play, but I'm trying to use 'isPlaying'
to find out when they stop, so I can carry on afterwards.
I do this:

[theSound play];
while ([theSound isPlaying]) {
    NSLog(@"still going");
    tempInt = usleep(500000);
}

The movie or sound plays.  The loop never stops.  I have
tried different sounds and different movies (using NSMovie
and NSMovieView, of course).

10.3.5.  Xcode.  Any ideas ?

Simon.
-- 
Using pre-release version of newsreader.
Please tell me if it does weird things.
0
Simon
9/30/2004 3:53:26 PM
comp.sys.mac.programmer.help 4653 articles. 2 followers. Post Follow

0 Replies
714 Views

Similar Articles

[PageSpeed] 10

Reply:

Similar Artilces:

help : cat help | grep '^99\d' don't work
hi all I have an file: 980<tab>980 981 981 982 982 983 983 984 984 985 985 986 986 987 987 988 988 989 989 990 990 991 991 992 992 993 993 994 994 I hope I can using "^99\d" to list 99x or using "^992\t" to list "992" but that don't work , why? I have tried using [\d]... , no use. thank you very much key9 On 2006-12-02, key9 wrote: > hi all > > I have an file: > 980<tab>980 >...

I don't work for IBM and I don't make promises I can't deliver on
I wish I could afford an advertising campaign to compete with what they have on the Internet now. I promise to go totally ballistic at the next LLLNL contract. Robert. On 8/12/2011 11:24 PM, Robert Myers wrote: > I wish I could afford an advertising campaign to compete with what they > have on the Internet now. > > I promise to go totally ballistic at the next LLLNL contract. > > Robert. I don't work for IBM (anymore) either. If you are talking about the death of Blue Waters, I don't believe they said they couldn't deliver. They said they chose not to beca...

'is not' or '!='
A newbie question to you; what is the difference between statements like: if x is not None: and if x != None: Without any context, which one should be preferred? IMHO, the latter is more readable. On 2014-08-18 21:35, ElChino wrote: > A newbie question to you; what is the difference between statements > like: > if x is not None: > and > if x != None: > > Without any context, which one should be preferred? > IMHO, the latter is more readable. > "x == y" tells you whether x and y refer to objects that are equal. "x is y&qu...

'^=' and '~='?
Hello, What is the difference between '^=' and '~='? Thanks, Duckhye ...

Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID'
Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' buy, risk-free purchase, working, tested, fully functional, very cheap discounted price, low cost, quality OEM software, ---------------------------------------------------------- Apple DVD Studio Pro 3 for MAC DVD-158 ROUTE66 ROUTE EUROPE 2004 MAC EDITION Image DVD-060 MOTU Audio Desk v2.0 HYBRiD SN: AD200-10T49-XYEVF CD NR 17 746 ...

Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID',
Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', buy, risk-free purchase, working, tested, fully functional, very cheap discounted price, low cost, quality OEM software, ---------------------------------------------------------- Apple DVD Studio Pro 3 for MAC DVD-158 ROUTE66 ROUTE EUROPE 2004 MAC EDITION Image DVD-060 MOTU Audio Desk v2.0 HYBRiD SN: AD200-10T49-XYEVF CD NR 17 746 CIGRAPH FACTO...

Don't understand: when('foo' and/or 'bar')
Would someone be so kind to explain the following (quotes are for win32 perl): perl -E" $u='foo'; given($u){ when('foo' and 'bar'){say 'f'} default{say 'd'} } " d perl -E" $u='bar'; given($u){ when('foo' and 'bar'){say 'f'} default{say 'd'} } " f perl -E" $u='baz'; given($u){ when('foo' and 'bar'){say 'f'} default{say 'd'} } " d perl -E" $u='foo'; given($u){ when('foo' or 'bar'){say 'f'} default{...

Linux crapware victim: Mepis8 'collapsed'... webcams don't work on Ubuntu 12.04..."Don't tell me to build a kernel..."
"I need my webcam to work with flash on web pages so that I can speak to family members overseas (Kopete and suchlike). I used mepis8 for years and everything was perfect, my webcams (three different makes), printers and anything else I cared to plug in worked from the off. lovely!! Then mepis8 collapsed suddenly and nothing worked. I tried the newer mepis variants and every other linux distro that I came across to solve the problem, but nothing works. I'm now using ubuntu 12.04, because it's not windows I suppose, but it's far from what I need. ...

telecommunication student need for the help'''''''
if anybody have communiction sytems for simon haykin(4th edition) solution e book(solutions to problems), please send it to me as soon as possible. i need it emergency ...

Databases Don't Work With OSes; OSes Don't Work With Databases -- Windos 2003 "You've Made A Mess" Say Irate Users !?!!
http://groups.google.com/groups?q=windows+2003+server+problem&hl=en&lr=&ie=UTF-8&as_drrb=b&as_mind=12&as_minm=2&as_miny=2004&as_maxd=7&as_maxm=6&as_maxy=2004&selm=ObEBOsECEHA.684%40tk2msftngp13.phx.gbl&rnum=1 Search Result 1 From: Dave Verwer (d.verwer@link-hrsystems.com) Subject: Problem with SQL Server & MSDTC on Windows 2003 (dtctester.exe related) View: Complete Thread (9 articles) Original Format Newsgroups: microsoft.public.sqlserver.server, microsoft.public.windows.server.general Date: 2004-03-12 08:02:14 PST Hi all I am not su...

Removing the letters 't' 'i' 'x' and 'y'
Im having trouble with figuring out how to write a function which will remove the letters 't' 'i' 'x' and 'y' from any input string in matlab. for example modstr(pixy) should result in ans = 'p' or modstr(picture) should result in ans = 'pcure' if anyone could offer any help or hints i would really appreciate it. Thank You >> modstr=@(s) s(~ismember(s,'tixy')) modstr = @(s)s(~ismember(s,'tixy')) >> modstr('picture') ans = pcure % Bruno ...

Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 16/Feb/2005
Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 16/Feb/2005 ---------------------------------------------------------- Apple DVD Studio Pro 3 for MAC - image- DVD-158 ROUTE66 ROUTE EUROPE 2004 MAC EDITION Image DVD-060 2004/12/02 Techsmith.Camtasia.Studio.v2.1.Multi 1CD 2004/12/02 IDS.ARIS.Design.v6.2.3.Multi 1CD 2004/12/02 SampleLab.Drum.Fundamentals.Multiformat 3CD 2004/12/02 SampleLab.Luscious.GROOVES.M...

Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 16/Feb/2005
Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 16/Feb/2005 ---------------------------------------------------------- Apple DVD Studio Pro 3 for MAC - image- DVD-158 ROUTE66 ROUTE EUROPE 2004 MAC EDITION Image DVD-060 2004/12/02 Techsmith.Camtasia.Studio.v2.1.Multi 1CD 2004/12/02 IDS.ARIS.Design.v6.2.3.Multi 1CD 2004/12/02 SampleLab.Drum.Fundamentals.Multiformat 3CD 2004/12/02 SampleLab.Lus...

Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 16/Feb/2005
Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 16/Feb/2005 ---------------------------------------------------------- Apple DVD Studio Pro 3 for MAC - image- DVD-158 ROUTE66 ROUTE EUROPE 2004 MAC EDITION Image DVD-060 2004/12/02 Techsmith.Camtasia.Studio.v2.1.Multi 1CD 2004/12/02 IDS.ARIS.Design.v6.2.3.Multi 1CD 2004/12/02 SampleLab.Drum.Fundamentals.Multiformat 3CD 2004/12/02 SampleLab.Lus...

Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 16/Feb/2005
Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 16/Feb/2005 ---------------------------------------------------------- Apple DVD Studio Pro 3 for MAC - image- DVD-158 ROUTE66 ROUTE EUROPE 2004 MAC EDITION Image DVD-060 2004/12/02 Techsmith.Camtasia.Studio.v2.1.Multi 1CD 2004/12/02 IDS.ARIS.Design.v6.2.3.Multi 1CD 2004/12/02 SampleLab.Drum.Fundamentals.Multiformat 3CD 2004/12/02 SampleLab.Luscious.GROOVES.M...

Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 16/Feb/2005
Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 16/Feb/2005 ---------------------------------------------------------- Apple DVD Studio Pro 3 for MAC - image- DVD-158 ROUTE66 ROUTE EUROPE 2004 MAC EDITION Image DVD-060 2004/12/02 Techsmith.Camtasia.Studio.v2.1.Multi 1CD 2004/12/02 IDS.ARIS.Design.v6.2.3.Multi 1CD 2004/12/02 SampleLab.Drum.Fundamentals.Multiformat 3CD 2004/12/02 SampleLab.Lus...

Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 14/Apr/2005
Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 14/Apr/2005 ---------------------------------------------------------- Apple DVD Studio Pro 3 for MAC - image- DVD-158 ROUTE66 ROUTE EUROPE 2004 MAC EDITION Image DVD-060 2005/04/07 Sibelius.3.0.Professional.MAC.OSX 1CD 2005/04/07 Pixar renderman 12.0 for MAC 2005/03/28 Curious.Labs.Poser.v6.0.MAC.OSX 1CD 2004/12/02 Techsmith.Camtasia.Studio....

Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 16/Feb/2005
Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 16/Feb/2005 ---------------------------------------------------------- Apple DVD Studio Pro 3 for MAC - image- DVD-158 ROUTE66 ROUTE EUROPE 2004 MAC EDITION Image DVD-060 2004/12/02 Techsmith.Camtasia.Studio.v2.1.Multi 1CD 2004/12/02 IDS.ARIS.Design.v6.2.3.Multi 1CD 2004/12/02 SampleLab.Drum.Fundamentals.Multiformat 3CD 2004/12/02 SampleLab.Luscious.GROOVES.M...

Why f=figure('visible','off') doens't work?!!!!!
Hi matlabers, stangre behaviour that I can't understand: I am developping a code that creates figures and save them, but as it is in a loop over thousands of steps, I don't want to see the figures, just save them. I knpw this is a very common question and I have made some research before posting this message, but I can't understand why, when I write in my loop f=figure('visible','off') and then I define my plot, and I use saveas or print, the figure appears on my screen!!!! How can I solve this problem?! Thanks in advance for your help, Camille. "...

'''''''''''''The Running Update/Append Queries Using VBA code Ordeal''''''''''''''
Hello fellow programmers, I am trying to run an append/update query from code, a command button on a form initiates the queries. the format i am using is; _____________________________________________________ SELECT "criteria" FROM "criteria" WHERE "criteria" UPDATE/APPEND "field selections" RecordSource "qryExample" = above text strings" _______________________________________________________________________ When i am running a SELECT query in this manner it works fine with no problems, and accepts the values of specified linked for...

Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 16/Feb/2005 #2
Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID', updated 16/Feb/2005 ---------------------------------------------------------- Apple DVD Studio Pro 3 for MAC - image- DVD-158 ROUTE66 ROUTE EUROPE 2004 MAC EDITION Image DVD-060 2004/12/02 Techsmith.Camtasia.Studio.v2.1.Multi 1CD 2004/12/02 IDS.ARIS.Design.v6.2.3.Multi 1CD 2004/12/02 SampleLab.Drum.Fundamentals.Multiformat 3CD 2004/12/02 SampleLab.Luscious.GROOVES.M...

'~' and '`' keys not working
Hi all, I have FreeBSD 7.2 installed under Parrellel on MAX OSX 10.5.8, however I discovered that the '`' key and the '~' key where not working on the CLI on FreeBSD. I have tried a couple of different shells and googled for a bit but still no joy. Has this happened to anyone else. What did you do to fix it. -- ..... "When asked what he would like on his tomb stone he said more bass" Aaron Spiteri <azzmosphere> wrote: > Hi all, > > I have FreeBSD 7.2 installed under Parrellel on MAX OSX 10.5.8, however > I discovered that t...

Mac Stuff CDs, A to Z, updated 2007/September/20, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID'
Mac Stuff CDs, A to Z, updated 2007/September/20, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' please send e-mail loa210@mail.gr , loa210@mailbox.gr , -------------------------------------------------------- 08/22/2007 Mac OS X Tiger 10.4.10 X86 08/14/2007 Adobe CS3 Master Collection MAC OSX UB D1 .DVD 08/09/2007 Digidesign Pro Tools V7.3 LE MAC OSX 05/11/2007 Altiverb 5.1 .MAC. .PPC. OSX 04/26/2007 VTC Macromedia D...

Mac Stuff CDs, A to Z, updated 2006/December/03, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID'
Mac Stuff CDs, A to Z, updated 2006/December/03, and Win & Mac programs, 'WinMac', 'PC/MaC', 'Win-Mac', 'Multi', 'Multi-Platform', 'MultiFormat', 'MULTIOS', 'HYBRID' -------------------------------------------------------- DFT Super Bundle for Apple Final Cut Pro, 4 CDs The DFT Super Bundle includes full versions of: 55mm, Digital Film Lab, Composite Suite, and zMatte. DFT Filter Bundle for Apple Final Cut Pro, 1 CD The DFT Filter Bundle includes full versions of: 55mm and Digital Film Lab. DFT Keyer Bundle for App...

Web resources about - [Cocoa] sound and video 'isPlaying' don't work - comp.sys.mac.programmer.help

Resources last updated: 2/20/2016 7:57:53 AM