You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- (void) test:(NSMutableArray*)s{
int i = s.length;
NSString *j = [s join:@""];
NSString *k = @"hello";
int l = k.length;
}
This crashes, because length property and the join: selector don't exist in NSMutableArray, and length doesn't exist on NSString either, they should have been replaced with the Haxe code in Array.hx and String.hx.
The text was updated successfully, but these errors were encountered:
Ah, I figured out the cause of the array crash. You are right that Array.h should work. It fails in some cases where you cast NSArray into NSMutableArray, e.g., String.split uses componentsSeparatedByString, which returns an NSArray, so it doesn't have a length property. I'm fixing String.split to convert the NSArray into an NSMutableArray, will send a pull request.
compiles to
This crashes, because
length
property and thejoin:
selector don't exist inNSMutableArray
, andlength
doesn't exist on NSString either, they should have been replaced with the Haxe code inArray.hx
andString.hx
.The text was updated successfully, but these errors were encountered: