Hi, You can also add the [Adopts (NSStreamDelegate)] on TestMonoTouchViewController class (but you'll also have to add Export attributes on all members you want implemented of the NSStreamDelegate protocol).
Here is an example of how to use the AdoptsAttribute: https://github.com/xamarin/monotouch-samples/blob/master/SimpleTextInput/EditableCoreTextView.cs Rolf On Tue, Jan 17, 2012 at 12:49 PM, Roy Goode <[email protected]> wrote: > The < > syntax is different between Obj-C and C#. > > You'll need to implement it as UIViewController in C#. > > public partial class printerTestMonoTouchViewController : UIViewController > > If you need to implement the NSStreamDelegate, you'll probably want to > subclass NSStreamDelegate separately. > > > > On 16 January 2012 20:19, danmiser <[email protected]> wrote: > >> How do you convert the following to MonoTouch? The compiler is not happy >> if I >> do this: >> >> public partial class printerTestMonoTouchViewController : >> UIViewController<NSStreamDelegate> >> >> >> @interface printerView : UIViewController <NSStreamDelegate> { >> NSMutableArray *_accessoryList; >> UITextField *printContent; >> UIButton *printButton; >> UIButton *printBarcodeButton; >> UIButton *printImageButton; >> UILabel *logLabel; >> UILabel *accessoryLabel; >> IBOutlet UISwitch *Myswitch; >> EAAccessory *accessory; >> EASession *session; >> UIAlertView *alertMessage; >> >> } >> >> >> -- >> View this message in context: >> http://monotouch.2284126.n4.nabble.com/UIViewController-NSStreamDelegate-converted-to-MonoTouch-tp4301287p4301287.html >> Sent from the MonoTouch mailing list archive at Nabble.com. >> _______________________________________________ >> MonoTouch mailing list >> [email protected] >> http://lists.ximian.com/mailman/listinfo/monotouch >> > > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
