Results 1 to 3 of 3
  1. #1
    Code conversion question

    Member Since
    Dec 13, 2006
    Posts
    13
    Question Code conversion question
    Dear All,

    I want to convert from CFTypeRef to CFStringRef, I am using the following code -

    Code:
    CFStringRef myString = CFCopyDescription (value);
    But is gives the string with expression but I want only its value.
    If anybody knows how to do that then plz help me out.


    Thanks.
    Vishal

  2. #2
    Code conversion question
    xstep's Avatar
    Member Since
    Jun 25, 2005
    Location
    On the road
    Posts
    3,231
    Specs:
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    You are out of my common knowledge...

    Assuming the value is an NSString then have you tried this;

    CFStringRef myString = (CFStringRef) value;

    I type cast to avoid a compiler warning; initialization from incompatible pointer type. I find that curious because as I understand the documentation, the types are suppose to be equivalent.

    You may want to review the CFType Reference and CFString Reference documentation at Apple.
    CameraTime - Time lapse photography for novice and advanced users.

    When asking questions, post the version of your software. You'll receive better answers.

    Please post your results to the thread as it is good feedback.

  3. #3
    Code conversion question
    dtravis7's Avatar
    Member Since
    Jan 04, 2005
    Location
    Modesto, Ca.
    Posts
    28,477
    Specs:
    iMac late 2007 10.11.b4, iMac 2008 10.10.5, Macbook2007 10.7.5, Mac Mini 10.7.5, iPhone 3GS Note 8!!
    I closed this thread for now as spammers are constantly using it for their spam. If the OP needs any more help on this topic, let us know.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ffmpegx conversion question
    By montrose1 in forum Movies and Video
    Replies: 1
    Last Post: 12-18-2010, 02:16 AM
  2. question about the wife and conversion
    By johnnyFIVE in forum Switcher Hangout
    Replies: 20
    Last Post: 05-26-2010, 04:54 PM
  3. Conversion Question
    By Hades in forum Movies and Video
    Replies: 2
    Last Post: 12-09-2007, 08:26 AM
  4. Ipod video conversion question
    By bartleby in forum iPod Hardware and Accessories
    Replies: 1
    Last Post: 12-06-2006, 01:30 PM
  5. Conversion question!
    By tooteaching in forum OS X - Apps and Games
    Replies: 2
    Last Post: 04-27-2006, 09:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •