Apple's suite of functions in CoreFoundation for string-handling. Toll-free bridged with NSString
Questions tagged [cfstring]
107 questions
1
vote
0 answers
CFString Dispose random crash
I am trying to create a thumbnail image of pdf in Monotouch but the app crashes sometimes and throws below error.
Stacktrace:
at MonoTouch.CoreFoundation.CFString.Dispose () [0x00000] in…

j2brian703
- 23
- 3
1
vote
1 answer
Creating a CFString object with JNA
I'm trying to get the hang of using JNA with Mac OS X. I want to access a Carbon library, for which there is no Cocoa equivalent, so Rococoa can't help me (I think...)
I'm stuck when trying to call a Carbon function that requires CFStringRef as a…

Steve McLeod
- 51,737
- 47
- 128
- 184
1
vote
2 answers
What causes "invalid CFStringRef" in this code?
I just try to play an apple's HLS sample stream. My code is very simple:
- (IBAction)playHLS:(id)sender {
NSString* str = @"https://devimages.apple.com.edgekey.net/resources/http-streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8";
…

jAckOdE
- 2,402
- 8
- 37
- 67
1
vote
0 answers
Obj-c *** -[CFString copyWithZone:]: message sent to deallocated instance
Here is the complete error in debugger :
2012-11-11 17:57:34.534 Killer[13745:707] *** -[CFString copyWithZone:]: message sent to deallocated instance 0xee57540
2012-11-11 18:01:59.231 Killer[13745:707] *** -[CFString class]: message sent to…

Max
- 93
- 1
- 9
1
vote
1 answer
How do I store the data within CFDataRef in unicode (BE) format?
I'm writing string data to a file in which the data should be written in ASCII and then essentially repeated in Unicode. The ASCII portion is working well, but the Unicode version is garbled. Attempts to explicitly create a Unicode string with…

user216661
- 323
- 3
- 14
1
vote
1 answer
Invalid CFStringRef from ABMultiValueCopyLabelAtIndex
I'm getting telephone numbers from the address book. I'm doing it this way:
ABMultiValueRef arrTelefonos = ABRecordCopyValue(contacto,kABPersonPhoneProperty);
for(int i=0;i

rai212
- 711
- 1
- 6
- 20
0
votes
1 answer
Can set to nil but not to a different thing
i think i don't finish to understand all about memory and that stuff but this is my problem:
I have a variable defined idActual on a view that will be pushed (var defined in its header), i can read (NSLog(idActual)) and set it to nil without…

CalixJumi
- 367
- 3
- 12
0
votes
4 answers
iphone app is crashing while assigning a string value to the table view
i my iphone app while assigning a string value to the table view its crashing, i have the following code in cellForRowAt index path method
while assigning a string value to the table view
NSMutableArray *arrTrimmedTblData=[[NSMutableArray…

Ravi
- 1,759
- 5
- 20
- 38
0
votes
2 answers
Avoiding forced downcast from Any to CFString
So here's some code I found from another question, it has a forced downcast from Any to CFString
import SystemConfiguration.CaptiveNetwork
func fetchSSIDInfo() -> String? {
var ssid: String?
if let interfaces = CNCopySupportedInterfaces()…

Yogurt
- 2,913
- 2
- 32
- 63
0
votes
3 answers
Diagnosing error: "release sent to deallocated object"
I received this error message:
message [CFString release] sent to deallocated object at 0x........
How can I know which string caused this problem? Can I figure out which CFString it is using the debugger?

CarmeloS
- 7,868
- 8
- 56
- 103
0
votes
1 answer
A variable not a CFString
I'm coding on Ojective-C just for month and get in the deadlock. Need help.
Here is the story:
I have a simple class LXPPlayingCard:
#import
@interface LXPPlayingCard : NSObject {
@private NSString* cardCV;
@private int…

Karen Fisher
- 747
- 1
- 8
- 25
0
votes
1 answer
Class dump and CFObjects
Does class dump get confused by CFObjects/structs? I used class dump on an application and one of the method's argument was a struct arg1 which is a BInstantMessage:
struct BInstantMessage {
void **_field1;
struct CFString _field2;
…

user635064
- 6,219
- 12
- 54
- 100
0
votes
1 answer
What is __CFString?
I have arg1 which is an IMessage. IMessage is defined as:
struct IMessage {
...
struct CFString _field2;
...
};
and CFString is defined as:
struct CFString {
void **_vptr$CFObject;
struct __CFString *mCFRef;
_Bool…

user635064
- 6,219
- 12
- 54
- 100
0
votes
2 answers
What NSString compare method call is equivalent to a CFStringCompare function call?
I am converting some old carbon code to Cocoa and need to use a comparison function that will return the same result as the one in carbon.
I am calling:
CFStringCompare( stringA, stringB, kCFCompareCaseInsensitive | kCFCompareDiacriticInsensitive |…

ericg
- 8,413
- 9
- 43
- 77
0
votes
1 answer
How to mount directory with mount point that contains non ascii characters on Mac 10.10?
I want to mount directory, from Ubuntu to Mac, with mount point that contains non ASCII characters, for example:
/User/user/zdjęcia
Whole process is finished successfully and this directory is visible both from command prompt and when I call 'df' -…

kubi1000
- 45
- 5