In my singleton release method, I have it doing nothing:
-(void) release {
//A whole lot of nothing.
}
But it produces this warning:
Warning: Conflicting distributed object modifiers on return type in implementation of ‘release’
I googled and saw others have the same error, but no explanation of the warning. Anyone know what the warning is about?
You need to declare it
oneway.onewayis a keyword used with distributed objects to indicate that the call can be made asynchronously. Since the NSObject header uses it when it declares thereleasemethod, you must also use it. It won’t affect your program unless you use distributed objects, but it will satisfy the compiler.