Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

alexandergre

macrumors member
Original poster
Jul 28, 2009
58
0
It works fine. but I get this warning:
warning: 'KissKissViewController' may not respond to '-reset'
.h
Code:
static void *reset;

.m
Code:
-(IBAction)ResetButton:(id)sender{
[self reset];
}


-(void)reset{
NSLOG(@"Resetting");
}
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
This would be correct:

.h
Code:
-(void)reset;

The compiler is ignoring what you have in the header.

What you have in the header is a declaration of a static variable of type void* named reset.

static in a header is almost always wrong.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.