C string conversions?
C string conversions?
- Subject: C string conversions?
- From: Charles Turner <email@hidden>
- Date: Wed, 13 Jul 2005 16:36:13 -0400
Hi all-
New to Cocoa and the list, and of course had a question:
I have an instance method in an object I've written that has a C string
as an argument. I need to store this in a TextStorage object, currently
using appendAttributedString:
Any thoughts on conversion? Right now I'm trying:
[NSAttributedString initWithString: [NSString stringWithCString:
aString]]
but initWithString isn't a class method, so it looks like I would have
to create an instance of NSAttributedString...
Anyway, thanks in advance if anything strikes you.
Best,
Charles Turner
<email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden