Re: Where are the errors in NSOSStatusErrorDomain defined?
Re: Where are the errors in NSOSStatusErrorDomain defined?
- Subject: Re: Where are the errors in NSOSStatusErrorDomain defined?
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Thu, 22 May 2014 12:54:12 +0700
On 22 May 2014, at 12:34, Roland King <email@hidden> 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:
/Volumes/MountainLion/System/Library/Frameworks/AudioToolbox.framework/Versions/A/Headers/AudioServices.h
But I cannot find it in 10.9.
>
>
> On 22 May, 2014, at 1:32 pm, Roland King <email@hidden> wrote:
>
>> 560030580 = 0x21616374 which is '!act'
>>
>> I believe that's the pattern for Audio stuff, you turn it to a 4-char string.
Very clever! I would never have thought of this.
>>
>> 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. Denkmann <email@hidden> wrote:
>>
>>> 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 ( [ [ outError domain ] isEqualToString: NSOSStatusErrorDomain ] && [ outError code ] == NSSomeErrorEnum )
>>>
>>> Where to look for this?
>>>
>>> Gerriet.
>>>
>>> iOS 7.1.1
>>>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden