Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSString.d @ 155:e91dcbf77cc7
Fixes runtime problems with dmd and ldc. Changed a couple of floats to CGFloat
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 06 Jul 2009 21:17:03 +0200 |
parents | 86fc761a24ae |
children |
comparison
equal
deleted
inserted
replaced
154:535243e6d16a | 155:e91dcbf77cc7 |
---|---|
34 public this(cocoa.id id) { | 34 public this(cocoa.id id) { |
35 super(id); | 35 super(id); |
36 } | 36 } |
37 | 37 |
38 public String getString() { | 38 public String getString() { |
39 wchar[] buffer = new wchar[lengthOfCharacters]; | 39 wchar[] buffer = new wchar[length()]; |
40 getCharacters(buffer.ptr); | 40 getCharacters(buffer.ptr); |
41 return dwt.dwthelper.utils.toString(buffer); | 41 return dwt.dwthelper.utils.toString(buffer); |
42 } | 42 } |
43 | 43 |
44 public wchar[] getString16() { | 44 public wchar[] getString16() { |
45 wchar[] buffer = new wchar[lengthOfCharacters]; | 45 wchar[] buffer = new wchar[length()]; |
46 getCharacters(buffer.ptr); | 46 getCharacters(buffer.ptr); |
47 return buffer; | 47 return buffer; |
48 } | 48 } |
49 | 49 |
50 public static NSString stringWith(String str) { | 50 public static NSString stringWith(String str) { |