Re: Adding attributes to NSMutableAttributedString

2010-06-14 Thread Graham Cox
On 11/06/2010, at 8:18 AM, Tom Korsgren wrote: > NSMutableAttributedString *string = @"aaa"; What you might have missed is that NS(Mutable)AttributedString is not a subclass of NSString. --Graham ___ Cocoa-dev mailing list (Co

Re: Adding attributes to NSMutableAttributedString

2010-06-14 Thread Flavio Donadio
Tom, On 14/06/2010, at 16:01, cocoa-dev-requ...@lists.apple.com wrote: > I'm trying to add some attributes to a NSMutableAttributedString using the > code below but only get errors. > > NSMutableAttributedString *string = @"aaa"; Try replacing the line above with:

Re: Adding attributes to NSMutableAttributedString

2010-06-14 Thread Ken Thomases
On Jun 10, 2010, at 5:18 PM, Tom Korsgren wrote: > I'm trying to add some attributes to a NSMutableAttributedString using the > code below but only get errors. > > NSMutableAttributedString *string = @"aaa"; This line is wrong. You are taking a NSString literal object

Re: Adding attributes to NSMutableAttributedString

2010-06-14 Thread jonat...@mugginsoft.com
On 10 Jun 2010, at 23:18, Tom Korsgren wrote: > Hi! > I'm trying to add some attributes to a NSMutableAttributedString using the > code below but only get errors. > > NSMutableAttributedString *string = @"aaa"; This creates an NSString instance, not an NSMutableAttri

Re: Adding attributes to NSMutableAttributedString

2010-06-14 Thread Stephen J. Butler
On Thu, Jun 10, 2010 at 5:18 PM, Tom Korsgren wrote: > Hi! > I'm trying to add some attributes to a NSMutableAttributedString using the > code below but only get errors. > >        NSMutableAttributedString *string = @"aaa"; The @"" notation is a constant NSString/CFString. If