in Technology by

When might you use a CFArray/Dictionary instead of a NSArray/Dictionary?

1 Answer

0 votes
by

Core Foundation is the brains of the operation. It’s written mostly in C. It was created with Apple’s acquisition of NEXT and their APIs and owes a lot to them. The NS* classes are often just Objective C abstract interfaces built on top of the CF* types. So, when you ask why both CFArray and NSArray exist, the answer is that they actually don’t. NSArrays are CFArrays, NSStrings are CFStrings, etc. That’s why toll-free-bridging is possible.

Related questions

0 votes
    Explain when to use NSArray and NSMutableArray. Which one is faster and threadsafe in Objective-C?...
asked Nov 10, 2020 in Technology by JackTerrance
0 votes
    I have a class that logs on to a server and retrieves some data. The data is put in a NSMutableArray, ... [heleTeksten componentsSeparatedByString:@"\n"]; NSString *searchFor = @"...
asked Jan 16, 2022 in Education by JackTerrance
0 votes
    I think I shall reframe my question from Where should you use BlockingQueue Implementations instead of Simple Queue ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    __________ is used when you have variables that form rows instead of columns. (a) tidy() (b) spread() (c ... Analysis of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    Which of the following attribute triggers event when media can start play, but might has to stop for buffering? A - onbeforeplay B - onplay C - oncanplay D - oncanplaythrough...
asked Dec 3, 2020 in Technology by JackTerrance
0 votes
    How might you approve all mappings in the archive all the while?...
asked Jun 7, 2021 in Technology by JackTerrance
0 votes
    Mention what are the typical problems you might face with the Backbone view code ?...
asked Nov 13, 2020 in Technology by JackTerrance
0 votes
    What is the difference between Nsarray and Nsmutablearray?...
asked Aug 26, 2021 in Technology by JackTerrance
0 votes
    Some e-commerce platforms have the suggestion feature where they tell you once you have an item in the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Dec 28, 2021 in Education by JackTerrance
0 votes
    Suman asked her friend Niharika her English Copy. However she didn't gave suman. What do you think might ... behind this communication. Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    Suman asked her friend Niharika her English Copy. However she didn't gave Suman. What do you think might ... behind this communication. Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    Keeping browsing habits & aiming specific ads to you is harmless but it might reduce your online privacy. ( ... for-Cyber Security:,Cyber Security-Jobs:,Cyber Security Applications...
asked Oct 31, 2021 in Education by JackTerrance
0 votes
    ETACS use ___________ instead of SID (system identification number). (a) Area identification number (b) Analog ... (c) Digital identification number (d) Dual identification number...
asked Oct 4, 2021 in Technology by JackTerrance
0 votes
    Can we use JSON instead of YAML while developing docker-compose file in Docker?...
asked Jun 21, 2021 in Technology by JackTerrance
...