[Mono-bugs] [Bug 616524] New: Invalid cast exception for UIBarButtonItem in .xib.designer.cs

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jun 22 21:43:08 EDT 2010


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

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


           Summary: Invalid cast exception for UIBarButtonItem in
                    .xib.designer.cs
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Runtime
        AssignedTo: gnorton at novell.com
        ReportedBy: mike.bluestein at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


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

In a sample application I created I have a UIBarButtonItem with an IB
connection. I rebuilt the app for iOS4 (previously it was targeting 3.1.3) and
installed it on an iphone 3g running iOS4 and an iPad (not universal; the app
is running on the iPad as an iPhone app). When I access the property from the
controller's code, I get an invalid cast exception in the getter where the cast
to a UIBarButtonItem is attempted. On the iPhone it works fine.

Sample project is available at http://github.com/mikebluestein/GameKitChat

Reproducible: Always

Steps to Reproduce:
1. Install the sample app on an iPhone and an iPad
2. Join them together via gamekit by pressing the join button on each device
and completing the prompts
3. When the UIBarButton property is accessed, the invalid cast should happen on
the iPad
Actual Results:  
InvalidCastException

Expected Results:  
no exception. button should be accessible from the controller (which is the app
delegate in this case)

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