Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
Do not generate a internal class_ptr on [Model] since it's not used (…
Browse files Browse the repository at this point in the history
…or exposed)
  • Loading branch information
spouliot committed Jun 6, 2013
1 parent 4a67ff5 commit 0a9cfde
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/generator.cs
Expand Up @@ -3492,12 +3492,13 @@ public void Generate (Type type)

// Regular bindings (those that are not-static) or categories need this
if (!is_static_class || is_category_class){
print ("[CompilerGenerated]");

if (is_category_class)
objc_type_name = FormatType (null, bta.BaseType);

print ("static readonly IntPtr class_ptr = Class.GetHandle (\"{0}\");\n", is_model ? "NSObject" : objc_type_name);
if (!is_model && !external) {
print ("[CompilerGenerated]");
print ("static readonly IntPtr class_ptr = Class.GetHandle (\"{0}\");\n", objc_type_name);
}
}

if (!is_static_class){
Expand Down

0 comments on commit 0a9cfde

Please sign in to comment.