Re: odd problem with NSMutableDictionary and initWithContentsOfFile
Re: odd problem with NSMutableDictionary and initWithContentsOfFile
- Subject: Re: odd problem with NSMutableDictionary and initWithContentsOfFile
- From: Jason Stephenson <email@hidden>
- Date: Thu, 29 May 2008 09:50:15 -0400
Leslie Smith wrote:
Hi:
I found out what I was doing wrong: rather than
[SimParamnames initWithContentsOfFile: aFile];
I should have had
SimParamnames = [SimParamnames initWithContentsOfFile: aFile];
A more "normal" way of doing the above is
NSMutableDictionary *SimParamnames;
SimParamanames = [[NSMutableDictionary alloc] initWithContentsOfFile:
aFile];
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden