Skip to content
Browse files

Fix id outlet generation.

  • Loading branch information...
1 parent 0190bdb commit ea9edcc3b031dbcc23c803f9bf5bedaf4dd7500d @letiemble letiemble committed Oct 7, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 addins/MonoDevelop.Monobjc/Tracking/ObjectiveCHeaderWriter.cs
View
6 addins/MonoDevelop.Monobjc/Tracking/ObjectiveCHeaderWriter.cs
@@ -44,7 +44,11 @@ protected override void WriteProperties (TextWriter writer, IType type)
writer.WriteLine ("{");
foreach (IProperty property in this.GetProperties(type)) {
- writer.WriteLine ("\tIBOutlet {0} *{1};", property.ReturnType.Name, property.Name);
+ String propertyType = property.ReturnType.Name;
+ if (property.Equals("Id")) {
+ propertyType = "id";
+ }
+ writer.WriteLine ("\tIBOutlet {0} *{1};", propertyType, property.Name);
}
writer.WriteLine ("}");

0 comments on commit ea9edcc

Please sign in to comment.
Something went wrong with that request. Please try again.