> On 23 Apr 2015, at 3:40 pm, Roland King <r...@rols.org> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to