Permalink
Browse files

Fix the definition

  • Loading branch information...
1 parent 6a892f4 commit a50be20946daa0220bb5ae52e262fcd75ea46ad5 @migueldeicaza migueldeicaza committed Mar 22, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/ObjCRuntime/NSStringMarshal.cs
View
12 src/ObjCRuntime/NSStringMarshal.cs
@@ -1,19 +1,19 @@
using System.Runtime.InteropServices;
using System;
-using System.Foundation;
+using MonoMac.Foundation;
-namespace MonoTouch.ObjCRuntime {
+namespace MonoMac.ObjCRuntime {
- public struct NSStringStruct {
+ public unsafe struct NSStringStruct {
public IntPtr ClassPtr;
- public int Flags
+ public int Flags;
public char *UnicodePtr;
- public int Lenght;
+ public int Length;
// The class pointer that we picked at runtime
public readonly static IntPtr ReferencePtr;
- public static NSStringStruct ()
+ static NSStringStruct ()
{
using (var k = new NSString (""))
ReferencePtr = Marshal.ReadIntPtr (k.Handle);

0 comments on commit a50be20

Please sign in to comment.