Re: Linking to MLMediaSourcePhotosIdentifier
Re: Linking to MLMediaSourcePhotosIdentifier
- Subject: Re: Linking to MLMediaSourcePhotosIdentifier
- From: Graham Cox <email@hidden>
- Date: Thu, 23 Apr 2015 15:50:26 +1000
> On 23 Apr 2015, at 3:40 pm, Roland King <email@hidden> wrote:
>
> 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
I read fine.
I may be confused, but my understanding is that extern NSString* const <blah> IS an address.
Also, adding the explicit & confuses the compiler - it then marks that code as dead, stating it will never be executed. I’m not sure how it comes to that conclusion exactly, but it tends to suggest that taking the address of an extern string constant is not a sensible operation.
—Graham
_______________________________________________
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