I have these 3 lines in code which are meant to take text from a .txt file and allocate it to an NSAttributedString
NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"txt"];
NSString *text = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:NULL];
NSAttributedString *attString = [[NSAttributedString alloc] initWithString:text];
Using the debugger I know that the path is being found correctly, and the text is being added to the variable text fine, but its not converting to the NSAttributedString - the debugger just says "variable is not NSAttributedString"
What am I missing from the third line to allow the NSString to be converted to an NSSAttributedString? (I dont want any attributes, but Im presuming you can just load the string into an attributed string?)