• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CFAttributedStringGetMutableString returning null value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: CFAttributedStringGetMutableString returning null value
      • From: Ali Ozer <email@hidden>
  • Prev by Date: Re: Serial port access from C / Objective C
  • Next by Date: get ref to instance from IB
  • Previous by thread: Re: Serial port access from C / Objective C
  • Next by thread: Re: CFAttributedStringGetMutableString returning null value
  • Index(es):
    • Date
    • Thread