- (void) applicationDidFinishLaunching:(NSNotification *)aNotification {Swap the two around so that the method being called comes before the method doing the calling:
[self someInitialization];
}
- (void) someInitialization {
// Do some stuff
}
- (void) someInitialization {And "ta da!", the warning goes away.
// Do some stuff
}
- (void) applicationDidFinishLaunching:(NSNotification *)aNotification {
[self someInitialization];
}
I'm not a particularly big fan of having to reorder my methods to please the compiler but I'm even less of a fan of having compiler warnings even when I know they're innocuous.
No comments:
Post a Comment