> On 23 Apr 2015, at 13:38, Graham Cox <graham....@bigpond.com> wrote: > > >> On 23 Apr 2015, at 3:30 pm, Roland King <r...@rols.org> 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 (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