0

I have an Objective-C singleton method the I need to access from C implementation. Any of you knows how can I do this?.

I'll really appreciate your help.

7
  • Is the C code in a .m file or a .c file? Commented Sep 9, 2016 at 20:30
  • @rmaddy is .c file. I'll really appreciate your help Commented Sep 9, 2016 at 20:32
  • Can't be done from a .c file. C knows nothing about Objective-C syntax. C code in a .m file would work but then it's really Objective-C code. Commented Sep 9, 2016 at 20:33
  • @rmaddy can I create a .h file with a macro to execute the objective-c code? Commented Sep 9, 2016 at 20:48
  • Possibly but only if the .h file is included into a .m file, not a .c file. Commented Sep 9, 2016 at 20:50

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.