Re: Linking to MLMediaSourcePhotosIdentifier
Re: Linking to MLMediaSourcePhotosIdentifier
- Subject: Re: Linking to MLMediaSourcePhotosIdentifier
- From: Roland King <email@hidden>
- Date: Thu, 23 Apr 2015 13:40:59 +0800
> On 23 Apr 2015, at 13:38, Graham Cox <email@hidden> wrote:
>
>
>> On 23 Apr 2015, at 3:30 pm, Roland King <email@hidden> wrote:
>>
>> Check if the address of the string constant is NULL. If it is, it wasn’t found. That’s the same as checking for weak linked methods.
>
>
> But that test itself crashes…
>
>
> i.e. if I do this:
>
> if( MLMediaSourcePhotosIdentifier == nil )
> {
>
>
> ...
> }
>
> I get EXC_BAD_ACCESS.
>
> —Graham
>
>
That’s because you didn’t read properly. Check if THE ADDRESS OF THE STRING CONSTANT is NULL.
The address of the string constant is &MLMediaSourcePhotosIdentifier
_______________________________________________
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