Modify AttributedString to work on both Mac and iOS.  Also this works on iOS5 as well.
Merge pull request #248 from mono/master

	Modify AttributedString to work on both Mac and iOS. Also this works  iOS5 as well