[Mono-bugs] [Bug 533566] New: Crash if I try to set an IBOutlet on the view used in a UINavigationController

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Aug 22 21:51:11 EDT 2009


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


           Summary: Crash if I try to set an IBOutlet on the view used in
                    a UINavigationController
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Runtime
        AssignedTo: gnorton at novell.com
        ReportedBy: sguindon at truecontext.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us)
AppleWebKit/530.18 (KHTML, like Gecko) Version/4.0.1 Safari/530.18

Put a Label on the view which a navigation controller is set to use as it's
view NIB, connected it via an IBOutlet to it's controller codebehind. MD auto
generated the .designer.cs functionality ok it seems.

Crashes on run. If you remove the IBOutlet on the Label, it will still no
longer run. If you reboot OSX it will then run. 

Reconnecting the IBOutlet causes it to crash again.

Reproducible: Always

Steps to Reproduce:
1.Drag a UINavigationController to the MainWindow.xib
2.Connect the UINavigationController via an IBOutlet to the AppDelegate
3.Select the Root ViewController, set it's NIB name to "TempViewController"
4. In MonoDevelop create a new view/viewcontroller called "TempViewController"
5. Set the background to blue on TempViewController so that it can be easily
identified.
6. Drag a UILabel onto TempViewController's View.
7. Run in simulator. You should see the blue view display. All is good here so
far.
8. Create a new IBOutlet and connect it to the Label.
9. Run in simulator. Crash occurs.
Actual Results:  
Crashes on application start.

Expected Results:  
For the view to display properly and the IBOutlet's to be connected properly.

Included is the solution of an example of the issue. Should be able to simply
run in the simulator to reproduce. The steps included describe what I did.

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


More information about the mono-bugs mailing list