At the bottom of page 288, you are presenting some sample code in reference to extracting a string and attributes for a NSAttributedString from a RTF file.
The code is as follows:
NSData *data = [NSData dataWithContentsOfFile:@"myfile.rtf"];
aString = [[NSAttributedString alloc] initWithRTF:data
What I don’t understand is when did “myDict” get the attributes to supply for the final assignment method to “aString”? Reading the documentation is a bit confusing also, but may indicate that the dictionary is set in the init method along with the new string. Is this possible? And if so, isn’t myDict pointing to nil right now?