[Mono-bugs] [Bug 534228] New: Minor formatting issue in autogenerated code from Interface Builder

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 25 17:36:57 EDT 2009


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


           Summary: Minor formatting issue in autogenerated code from
                    Interface Builder
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: Tools
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: bwmcadams at evilmonkeylabs.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Beta-Customer


Description of Problem:

I could be wrong (I can't always remember all the odd nuances of c# formatting
versus java), but it appears the code being generated from interface builder
for partial stubs with hooked up events is wrong, and missing a newline.

The hello world example for MonoTouch shows the "sampleTap" event's generated
stub as:

[MonoTouch.Foundation.Export("sampleTap")]
partial void sampleTap (MonoTouch.UIKit.UIButton sender);

However, when I follow the steps in the tutorial and save, my copy of
MonoDevelop is producing generated code that looks like this:
[MonoTouch.Foundation.Export("sampleTap")]partial void sampleTap
(MonoTouch.UIKit.UIButton sender);

I believe there should be a newline generated after the Export attribute, at
least to clean up formatting and match up with the tutorial.

Steps to reproduce the problem:
1.  Hook up a button's Touch Down event to App Delegate
2.  Save the interface builder document
3.  View the generated Mainwindow.xib.designer.cs in MonoDevelop, note the
discrepancy


Actual Results:
Generated stub reads:
[MonoTouch.Foundation.Export("sampleTap")]partial void sampleTap
(MonoTouch.UIKit.UIButton sender);


Expected Results:
Generated stub is expected to read:
[MonoTouch.Foundation.Export("sampleTap")]
partial void sampleTap (MonoTouch.UIKit.UIButton sender);


How often does this happen? 

This happens reliably for me when I walk through the tutorial.

Additional Information:
I believe this is an incredibly minor issue, but felt I should mark it in case
the formatting issue is manifesting another bug that may be unmasked by fixing
it/investigating it.

-- 
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