Hey Brian, This sounds like perhaps your controllers were subclassing some custom class that was not [Register]'d? If you find that class and add a [Register] attribute, it would probably save you a lot of time rewriting everything to directly subclass UIViewController.
Jeff On Fri, Nov 18, 2011 at 1:52 PM, Brian Schuth <[email protected]> wrote: > Literally five minutes after my last message, the .h file showed up for > the xib I had been struggling with! > > I succeeded in getting a second one to work. Here is what I am doing. I'm > not sure if it is all necessary, but it works for me. > > > 1. I add UIViewController as the parent class in the designer.cs > declaration for the xib. > 2. I build. > 3. I rewrite the designer.cs to change it from Xcode 3 structure (with > the __mt* declarations) to Xcode 4 (i.e. simple attribute declarations with > the [Outlet] attribute). I use a new xib that works correctly with Xcode 4 > to be sure I've kept all the necessary declaration. Tedious, but nowhere > near as tedious as having to rewrite the xibs from scratch. > 4. I build again. > 5. I exit MT. > 6. I make sure Xcode is not running. > 7. I re-enter MT; now, when I go to edit the xib in Xcode 4, all is > well. > > YMMV, but I'm back to work! > > bjs > > On Fri, Nov 18, 2011 at 1:10 PM, Jeff Stedfast [via MonoTouch] <[hidden > email] <http://user/SendEmail.jtp?type=node&node=4084321&i=0>> wrote: > >> Hi Brian, >> >> The only thing I can think of is that perhaps your classes don't have a >> [Register] attribute on them (should be in the .designer.cs files)? >> >> Jeff >> >> On Fri, Nov 18, 2011 at 9:40 AM, Brian Schuth <[hidden >> email]<http://user/SendEmail.jtp?type=node&node=4084183&i=0> >> > wrote: >> >>> I'm gathering no one else is experiencing this problem, but in the >>> interest of helping those who might come after me, some more information: >>> >>> The problem does not appear to reside in the csproj or sln files; I am >>> able to add a new view controller to the project whose previous view >>> controllers won't edit in xcode, and the new one works correctly. >>> >>> I've been looking at the contents of the xib file, to see if that might >>> contain some hint or other to MT to generate the necessary *.h and *.m >>> files. There were a couple of tags at the top that contained versioning >>> information I thought MT might use, and that were different in the new >>> controller I added. The first: >>> >>> <archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" >>> version="8.00"> >>> >>> (I changed the version from "7.10" to "8.00" -- no difference in >>> behavior); and the second: >>> >>> <int key="IBDocument.SystemTarget">1280</int> >>> >>> (changed from 768 to 1280, again no difference in behavior). >>> >>> It appears naming conventions have changed at some point; my old >>> controllers have three files associated with them: MyController.xib, >>> MyController.xib.cs, and MyController.xib.designer.cs. The new controllers >>> do not include the xib in the cs names, i.e. the files are >>> MyController.xib, MyController.cs, and MyController.designer.cs. I may be >>> looking in all the wrong places, but I think I've exhausted the obvious >>> places where the pre xcode 4 files are different and might be confusing MT. >>> >>> Any help is appreciated. And for those of you that shun IB/Xcode >>> altogether, I grant you your point. >>> >>> bjs >>> >>> On Thu, Nov 17, 2011 at 3:19 PM, Brian Schuth <[hidden >>> email]<http://user/SendEmail.jtp?type=node&node=4084183&i=1> >>> > wrote: >>> >>>> OK, so examining things a little more closely, I see that in a new MT >>>> project, double-clicking on a xib causes MT to make a little sandbox with a >>>> copy of your xib and the MT-generated *.h and *.m files Xcode will want to >>>> use -- the sandbox is in obj/Xcode/0 directory. >>>> >>>> When I double-click on a xib in my converted project, no such parallel >>>> copy is made. I thought maybe this was because they resided in a directory >>>> off the main directory, but this is not a problem in a new project. >>>> >>>> What bit needs to be flipped to make MT know to do this? I did a quick >>>> look at the .csproj and don't see much there. I'm stuck with a bunch of UI >>>> changes and no good way to make them... >>>> >>>> bjs >>>> >>>> >>>> On Thu, Nov 17, 2011 at 12:47 PM, Brian Schuth <[hidden >>>> email]<http://user/SendEmail.jtp?type=node&node=4084183&i=2> >>>> > wrote: >>>> >>>>> Just moved my MT stack over to the newest latest and greatest stable >>>>> versions. Learned how to do outlets in XCode 4 on a new project, no >>>>> problem. >>>>> >>>>> But when I open my main application solution, which I've been working >>>>> on since June, was it supposed to convert and create .h files for all my >>>>> xibs? I did get a conversion message, but there are no .h files anywhere >>>>> (at least I haven't found them yet), and so when I open my old xibs >>>>> there's >>>>> no place to drag my new outlets to. >>>>> >>>>> Am I missing something? The solution contains a lot of support >>>>> libraries as well as two iPad projects. Might I be confusing the >>>>> converter? >>>>> >>>>> Thanks. bjs >>>>> >>>>> -- >>>>> Brian Schuth >>>>> ALPHCE, Inc. >>>>> Eastport, ME >>>>> <a href="tel:%2B1%20207%20370%202430" value="<a >>>>> href="tel:%2B12073702430" value="+12073702430" target="_blank"> >>>>> +12073702430" target="_blank"><a href="tel:%2B1%20207%20370%202430" >>>>> value="+12073702430" target="_blank">+1 207 370 2430 >>>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=4084183&i=3> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Brian Schuth >>>> ALPHCE, Inc. >>>> Eastport, ME >>>> <a href="tel:%2B1%20207%20370%202430" value="<a >>>> href="tel:%2B12073702430" value="+12073702430" target="_blank"> >>>> +12073702430" target="_blank"><a href="tel:%2B1%20207%20370%202430" >>>> value="+12073702430" target="_blank">+1 207 370 2430 >>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=4084183&i=4> >>>> >>>> >>> >>> >>> -- >>> Brian Schuth >>> ALPHCE, Inc. >>> Eastport, ME >>> <a href="tel:%2B1%20207%20370%202430" value="<a >>> href="tel:%2B12073702430" value="+12073702430" target="_blank"> >>> +12073702430" target="_blank"><a href="tel:%2B1%20207%20370%202430" >>> value="+12073702430" target="_blank">+1 207 370 2430 >>> [hidden email] <http://user/SendEmail.jtp?type=node&node=4084183&i=5> >>> >>> >>> _______________________________________________ >>> MonoTouch mailing list >>> [hidden email] <http://user/SendEmail.jtp?type=node&node=4084183&i=6> >>> http://lists.ximian.com/mailman/listinfo/monotouch >>> >>> >> >> _______________________________________________ >> MonoTouch mailing list >> [hidden email] <http://user/SendEmail.jtp?type=node&node=4084183&i=7> >> http://lists.ximian.com/mailman/listinfo/monotouch >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the >> discussion below: >> >> http://monotouch.2284126.n4.nabble.com/My-projects-did-not-convert-for-XCode-4-tp4080895p4084183.html >> To start a new topic under MonoTouch, email [hidden >> email]<http://user/SendEmail.jtp?type=node&node=4084321&i=1> >> To unsubscribe from MonoTouch, click here. >> NAML<http://monotouch.2284126.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > > > > -- > Brian Schuth > ALPHCE, Inc. > Eastport, ME > +1 207 370 2430 > [hidden email] <http://user/SendEmail.jtp?type=node&node=4084321&i=2> > > > ------------------------------ > View this message in context: Re: My projects did not convert for XCode > 4?<http://monotouch.2284126.n4.nabble.com/My-projects-did-not-convert-for-XCode-4-tp4080895p4084321.html> > Sent from the MonoTouch mailing list > archive<http://monotouch.2284126.n4.nabble.com/>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
