Hey Chris and Chris,

I got your logs, thanks!

Do you have C# classes for your .xib files?

In MonoDevelop, you can create standalone .xib files (Xcode allows
this too) where no classes are auto-generated for you.

I mention this because MonoDevelop only generates .h files from C#
classes, not from .xib files, when it exports projects to Xcode.

This might be a source of confusion.

Is this the case for your projects? Unfortunately, the Xcode4Sync.log
doesn't contain enough information for me to make this conclusion, but
it does sort of suggest that it might be the case since it does not
mention finding any classes associated with your .xib files. However,
this could simply be a bug in MonoDevelop's logic to collect the user
defined types in the project.


Jeff


On Fri, Feb 24, 2012 at 5:31 PM, Chris_M <[email protected]> wrote:
>
> Here's an update, using the project I have that currently has the missing .h
> file problem.
>
> I tried quitting MonoDevelop and Xcode and deleting the obj folder from my
> project, then relaunching MonoDev, double-clicking that project's lone
> ViewController's xib file to launch Xcode (while giving Xcode plenty of time
> to load or process anything it needed to handle). Once again, though, no .h
> file -- "No Assistant Results".
>
> So then I copied the code from my ViewController file (and stuck it in a
> different code editor) and deleted the ViewController files (the .cs,
> .designer.cs, and .xib) from within MonoDevelop. Then I used the Add File
> option to create a new iPhone ViewController file. I deleted the text from
> that ViewController.cs file and pasted in my previous code, then
> double-clicked the xib file to launch Xcode. Once again, no .h file, "No
> Assistant Results".
>
> Just for grins (and because I started in QA), I closed Xcode, went back to
> MonoDev, and deleted the ViewController files again. Then I used Add File to
> create a new set of ViewController files again. This time I didn't replace
> the auto-generated code in the ViewController.cs file. I double-clicked the
> xib, launched Xcode, and lo! There was a ViewController.h file! So I added
> an MKMapView object to the GUI and ctrl+dragged it onto the .h file to
> create an outlet. Saved it, quit Xcode, and went back to MonoDevelop.
>
> Then I copy and pasted my old ViewController code into the Viewcontroller.cs
> file, replacing the auto-generated code that was there. Double-clicked the
> xib file, launched Xcode, and there was my MKMapView object. I clicked on
> the Assistant Editor button, and...no .h file. "No Assistant Results". The
> file is not in the project tree.
>
> Jeff, I'll attach the latest log file generated after this latest round of
> testing to the bug in BugZilla. Let me know if there's anything else you
> want me to try with this project.
>
>
> --Chris M.
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/Problem-with-h-files-disappearing-in-Interface-Builder-tp4415963p4418802.html
> Sent from the MonoTouch mailing list archive 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

Reply via email to