Kroan
Kroan

Reputation: 85

Monodevelop migrate 2.8 didn't add .h files

I just upgrade my MonoDevelop to the latest version (2.8). I also installed XCode4, since it's fully supported now. When opening my solution (which consists of several projects) I was asked to migrate my solution. I did this and saved everything.

However, I think something is missing. When I open the .xib file, the project on the right doesn't show .h files, like shown in the tutorial.

It also shows warnings that the outlets were not found in XCode.

When I add a new screen, it creates the .h file as it should and shows this in XCode. However all existing screens don't have these files, which makes it impossible to add/change outlets.

How can I fix this.

Upvotes: 2

Views: 238

Answers (1)

Mikayla Hutchinson
Mikayla Hutchinson

Reputation: 16153

Check that your classes you expect to see in Xcode have explicit [Register("SomeName")] attributes, which register them with a name usable from Xcode/Obj-C/IB.

I would expect an imported project to have those attributes already, since they're required for xibs to be able to load the classes by name, but you could maybe have got away without those attributes by using outlets on "File's Owner".

Upvotes: 2

Related Questions