CFAttributedStringGetMutableString returning null value
CFAttributedStringGetMutableString returning null value
- Subject: CFAttributedStringGetMutableString returning null value
- From: Travis Kirton <email@hidden>
- Date: Mon, 15 Jun 2009 21:29:57 -0600
I have a method, where I need to append to a MutableAttributedString
Here is the method...
- (void)appendStringFromSelf:(CFMutableAttributedStringRef)theString with:(
CFIndex)numberOfGlyphs
{
CFMutableStringRef mutableString = CFAttributedStringGetMutableString
(theString);
CFAttributedStringRef appendableString =
CFAttributedStringCreateWithSubstring(...);
CFStringAppend(mutableString,CFAttributedStringGetString(appendableString));
return;
}
What is strange is that the first line in this method:
CFMutableStringRef mutableString = CFAttributedStringGetMutableString
(theString);
mutableString is NULL even though variable-> theString is a non-null
MutableAttributedString
Does anyone know why this might be happening?
Cheers,
Travis
_______________________________________________
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