xcode5 - Where is objc_msgSend once you upgrade to Xcode 5? -


this code working yesterday:

id urlnsstring = objc_msgsend(objc_getclass("nsstring"), sel_registername("stringwithutf8string:"), "http://zmangames.com/product-details.php?id=1246"); objc_msgsend(objc_getclass("eaglview"), sel_registername("openurl:"), urlnsstring); 

i upgraded xcode 5, , says function not defined. i'm doing

#include <objc/message.h> #include <objc/objc.h> #include <objc/runtime.h> 

which seems in /usr/include/objc, , seems include definitions of function. don't other complaints whole project.

codesense says definition looks this:

objc_export id objc_msgsend(id self, sel op, ...) __osx_available_starting(__mac_10_0, __iphone_2_0); 

try #import <objc/runtime.h> instead.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -