Hi!,
I need to use a C++ method into a selector. This is a handler for a MenuItem click. Is there any way to do this?.
Thanks in advance,
HexDump.
A fast, easy to use, free, and community supported 2D game engine
Hi!,
I need to use a C++ method into a selector. This is a handler for a MenuItem click. Is there any way to do this?.
Thanks in advance,
HexDump.
you could just wrap the method in an objective-c method which is then used be the menu clicks??
hexdump,
Like Bongeh said, nothing special:
A function like:
void myHandler()
{
// Code here
}
becomes:
-(void)myHandler: (id)sender
{
// Code here
}
If you need more arguments for your selector, just add more.
-robodude666
You must log in to post.