Re: Why does the following refuse to compile?
Re: Why does the following refuse to compile?
- Subject: Re: Why does the following refuse to compile?
- From: Fritz Anderson <email@hidden>
- Date: Sun, 24 Sep 2006 12:56:23 -0500
NSMutableArray* array = [NSMutableArray array]; const NSStringEncoding* encoding = [NSString availableStringEncodings];
while (*encoding) { NSDictionary *encoding = [NSDictionary dictionaryWithObjectsAndKeys:[NSString localizedNameOfStringEncoding:*encoding],@"encodingName",[NSNumber numberWithInt:*encoding],@"encoding",nil]; [array addObject:encoding]; encoding++; }
At the line after "while (*encoding)" I get the following errors: incompatible type for argument 1 of ‘localizedNameOfStringEncoding: incompatible type for argument 1 of ‘numberWithInt:
Call me paranoid but your masking redefinition of "encoding" from NSStringEncoding * to NSDictionary * makes me very suspicious.
-- F
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden