Hi,
I just had a similar problem. I don't know if this will help you but here's
how I got around it:
I was adding a new class derived from UIView to my project. No .xib.cs file
was generated at that time, just the XIB. In the end I had to edit the XIB,
change the custom class name and then create a new file with the same name.
I then copied the stub of an earlier UIView-derived class I'd generated
into it, changed the names and added the line
[MonoTouch.Foundation.Register("MyViewName")]
It's an annoying problem but this seems to have fixed it in my case.
Cheers, Matt
On 30 April 2012 14:19, MilkyJoe <[email protected]> wrote:
> Hi Jeff.
>
> I'm honestly not sure. I've done a little more digging, and everything is
> as
> it should be with one of my previous apps. The only difference with this
> app
> is that it's universal, and has 2 xibs for each view controller. The .h
> file
> simply isn't showing up in the assistant editor in XCode.
>
>
> Jeffrey Stedfast wrote
> >
> > Hi MilkyJoe,
> >
> > MonoDevelop only generates .m/.h file pairs for your custom C# classes
> > that
> > derive from NSObject and have a [Register] attribute. It doesn't actually
> > generate them from .xib files.
> >
> > Does that jive with what you are seeing? Or do you have [Register]'d
> > custom
> > C# classes that aren't being translated to Objective-C when opening the
> > .xibs in Xcode?
> >
> > Jeff
> >
> > On Fri, Apr 27, 2012 at 5:13 AM, MilkyJoe <[email protected]>wrote:
> >
> >> Thanks Buster. It's happening on both my iMac and my Macbook Pro, so
> it's
> >> almost as if something has changed within MD or XCode.
> >>
> >> --
> >> View this message in context:
> >>
> http://monotouch.2284126.n4.nabble.com/XCode-4-3-2-and-MD-2-8-8-4-MT-code-not-displaying-when-editing-XIB-tp4590243p4592191.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
> >
>
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/XCode-4-3-2-and-MD-2-8-8-4-MT-code-not-displaying-when-editing-XIB-tp4590243p4598179.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