Re: Where are the errors in NSOSStatusErrorDomain defined?

2014-05-22 Thread Gerriet M. Denkmann
On 22 May 2014, at 12:50, Ben Kennedy b...@zygoat.ca wrote: If that is indeed the context in which Gerriet is receiving the error, it sounds as though the routine generating it is assigning an inappropriate error domain then, no? Surely it should be a CoreAudio-related domain

Re: Where are the errors in NSOSStatusErrorDomain defined?

2014-05-22 Thread Uli Kusterer
On 22 May 2014, at 07:50, Ben Kennedy b...@zygoat.ca wrote: If that is indeed the context in which Gerriet is receiving the error, it sounds as though the routine generating it is assigning an inappropriate error domain then, no? Surely it should be a CoreAudio-related domain (specifically

Re: Where are the errors in NSOSStatusErrorDomain defined?

2014-05-22 Thread Sean McBride
On Thu, 22 May 2014 12:17:50 +0700, Gerriet M. Denkmann said: Got an NSError with: Error Domain=NSOSStatusErrorDomain Code=560030580 The operation couldn’t be completed. (OSStatus error 560030580.) In addition to what others have said. Check MacErrors.h. You can also use the 'macerror'

Where are the errors in NSOSStatusErrorDomain defined?

2014-05-21 Thread Gerriet M. Denkmann
Got an NSError with: Error Domain=NSOSStatusErrorDomain Code=560030580 The operation couldn’t be completed. (OSStatus error 560030580.) Have: if ( [ [ outError domain ] isEqualToString: NSOSStatusErrorDomain ] [ outError code ] == 560030580 ) but would like to have: if ( [

Re: Where are the errors in NSOSStatusErrorDomain defined?

2014-05-21 Thread Roland King
560030580 = 0x21616374 which is '!act' I believe that's the pattern for Audio stuff, you turn it to a 4-char string. There's a rumour on the internet that used to be kAudioSessionNotActiveError but I'm banana-ed if I can find that in the current SDK. On 22 May, 2014, at 1:17 pm, Gerriet M.

Re: Where are the errors in NSOSStatusErrorDomain defined?

2014-05-21 Thread Roland King
and of course as soon as I sent the message I do in fact find it AudioToolbox.framework/Headers/AudioSession.h On 22 May, 2014, at 1:32 pm, Roland King r...@rols.org wrote: 560030580 = 0x21616374 which is '!act' I believe that's the pattern for Audio stuff, you turn it to a 4-char string.

Re: Where are the errors in NSOSStatusErrorDomain defined?

2014-05-21 Thread Ben Kennedy
If that is indeed the context in which Gerriet is receiving the error, it sounds as though the routine generating it is assigning an inappropriate error domain then, no? Surely it should be a CoreAudio-related domain (specifically for the reason illustrated by this thread). b Sent from my

Re: Where are the errors in NSOSStatusErrorDomain defined?

2014-05-21 Thread Gerriet M. Denkmann
On 22 May 2014, at 12:34, Roland King r...@rols.org wrote: and of course as soon as I sent the message I do in fact find it AudioToolbox.framework/Headers/AudioSession.h I found: kAudioSessionNotActiveError = '!act', in: