Simple CFString ref question (take pity on ObjC dude)
Simple CFString ref question (take pity on ObjC dude)
- Subject: Simple CFString ref question (take pity on ObjC dude)
- From: Steve Cronin <email@hidden>
- Date: Sat, 18 Mar 2006 17:33:45 -0600
Folks;
I've got my head around ObjC but I still get bamboozled by the C *
stuff...
I've got a struct that currently gets populated like so:
....
theParameters.p1 = CFSTR("String1");
theParameters.p2 = CFSTR("TString2");
What I want to do is change it to something close to:
theParameters.p3 = [[NSString stringWithFormat:@"%@",newVal]
cStringUsingEncoding:[NSString defaultCStringEncoding]];
But I get warnings on incompatible pointer type.
I know CFSTR returns a reference to a CFString object, I just can't
get the syntax right for the NSString.
Help?
Steve
_______________________________________________
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