NSStreamDelegate is defined for Cocoa, but not Cocoa Touch. iPhone stream:handleEvent: is an informal delegate method.@interface MyClass: NSObject {}
@interface MyClass: NSObject <NSStreamDelegate> {}
On Mac OS X 10.6 SDK (used by iPhone OS 4) delegate methods are generally defined in formal protocols rather than informal protocols as before, which means you have to declare the protocol conformance in the class interface of the delegate. More info at Mac OS X SDK release notes.
Thanks! After upgrading to Xcode 4.1, I received all those pesky warnings. Now they're all gone! Thanks again. Greetings from the Philippines
ReplyDeleteLife Saver.... I could not understand, why the code that was written for OS4.0, did not work on 3.2
ReplyDelete