[Mono-bugs] [Bug 578445] New: MonoTouch defines the same class from XIB multiple times

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 9 15:00:19 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=578445

http://bugzilla.novell.com/show_bug.cgi?id=578445#c0


           Summary: MonoTouch defines the same class from XIB multiple
                    times
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Tools
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: eduardoscoz at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Steps:
In Monodevelop 
1- new solution, name, OK
2- double click MainWindow.xib

in Interface Builder:
1- go to library->classes
2- rightclick UILabel -> new subclass...
3- type "MyLabel"
4- drag and drop MyLabel from list to window 3 times
5- save, close

back in monodevelop:
1 - try to compile

The mainwindow.xib.designer.cs contains 3 definitions for the same class:

    // Base type probably should be MonoTouch.UIKit.UILabel or subclass
    [MonoTouch.Foundation.Register("MyLabel")]
    public partial class MyLabel {
    }

    // Base type probably should be MonoTouch.UIKit.UILabel or subclass
    [MonoTouch.Foundation.Register("MyLabel")]
    public partial class MyLabel {
    }

    // Base type probably should be MonoTouch.UIKit.UILabel or subclass
    [MonoTouch.Foundation.Register("MyLabel")]
    public partial class MyLabel {
    }

This is invalid C# code.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list