The only way I can reproduce this is if I double -click a .xib and then super-fast-like-a-speeding-bullet click the Assistant Editor in Xcode before the "Indexing files..." progress bar finishes.
BUT the header files *are* there. It just seems that Xcode fails to map them unless you wait for the progress bar to finish first. Jeff On Fri, Feb 24, 2012 at 12:11 PM, Tossing, Chris <[email protected]>wrote: > I have experienced this many times, and the .h files were missing from > the Xcode project itself. The xib was there but not the .h file. I > believe that closing both MonoDevelop and Xcode and then deleting the > obj\Xcode directory from the project was part of my recovering from this – > when I have had to do this, I ended up losing the changes I had made in > Xcode since things got out of sync.**** > > ** ** > > Chris, do you happen to have your code files on a share on another > computer? (we do, and I felt like that might be part of the problem)**** > > ** ** > > Thank you,**** > > ** ** > > *Chris Tossing* > > Software Engineer**** > > G4S Technology Software Solutions LLC**** > > Direct Dial: +1 (781) 457-0779**** > > Cell: +1 (847) 942-0359**** > > [email protected]**** > > www.1f.com**** > > 21 North Avenue, Burlington, Massachusetts 01803 USA**** > > ** ** > > P *Please consider the environment before printing this email***** > > ** ** > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Jeff Stedfast > *Sent:* Friday, February 24, 2012 11:30 AM > *To:* Chris_M > *Cc:* [email protected] > *Subject:* Re: [MonoTouch] Problem with .h files disappearing in > Interface Builder**** > > ** ** > > Hi Chris,**** > > ** ** > > Can you try expanding the project tree in Xcode and verifying that the > header files are for sure not there?**** > > ** ** > > I suspect that they are, in fact, there. I suspect that the problem is > simply that Xcode is still indexing them and that is why clicking the > Assistant Editor is not opening the proper header file.**** > > ** ** > > Thanks,**** > > ** ** > > Jeff**** > > ** ** > > On Thu, Feb 23, 2012 at 9:36 PM, Chris_M <[email protected]> wrote:* > *** > > > I seem to have stumbled upon the same problem now as siancu here, > > http://monotouch.2284126.n4.nabble.com/Question-about-the-Multi-Screened-Application-tutorial-td4404379.html > Question about the Multi-Screened Application tutorial , where the .h file > for a ViewController disappears, causing the project to generate a host of > errors when you build it. > > I've been able to pretty reliably reproduce the problem with these steps: > > 1) Create a new solution in MonoDevelop (number of views doesn't matter). > > 2) Double-click a ViewController xib to edit it in Interface Builder. > > 3) In IB, add one or more buttons or other screen elements, open the > Assistant Editor to access the ViewController.h file, ctrl+drag one or more > of them over and create outlets like normal. > > 4) Quit IB and go back to MonoDevelop. Make significant changes to the code > in the ViewController file in question. In particular, cutting a big chunk > of of the code and pasting in replacement code seems to do the trick. > > (I haven't been able to confirm if quitting and relaunching MonoDevelop > between steps 4 and 5 is part of the problem or not.) > > 5) Double-click on that ViewController's xib again, relaunching IB. Click > on > the Assistant Editor button. If the problem occurs, you won't have a .h > file > anymore and the Assistant Editor screen will say "No Assistant Results". > > Has anyone else experienced this, and more importantly, is there any way to > to recover or recreate the missing .h file (or get MonoTouch to generate a > new one) without rebuilding the project from scratch? > > > --Chris M. > > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Problem-with-h-files-disappearing-in-Interface-Builder-tp4415963p4415963.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch**** > > ** ** > > ------------------------------ > The details of this company are as follows: > G4S Technology Limited, Registered Office: Challenge House, International > Drive, Tewkesbury, Gloucestershire GL20 8UQ, Registered in England No. > 2382338. > > This communication may contain information which is confidential, personal > and/or privileged. > > It is for the exclusive use of the intended recipient(s). > If you are not the intended recipient(s), please note that any > distribution, forwarding, copying or use of this communication or the > information in it is strictly prohibited. > > Any personal views expressed in this e-mail are those of the individual > sender and the company does not endorse or accept responsibility for them. > > Prior to taking any action based upon this e-mail message, you should seek > appropriate confirmation of its authenticity. > > This e-mail has been scanned for all viruses by MessageLabs. >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
