Results 1 to 3 of 3

Thread: Code conversion question

  1. #1

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

    I want to convert from CFTypeRef to CFStringRef, I am using the following 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.


  2. #2

    xstep's Avatar
    Member Since
    Jun 25, 2005
    On the road
    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

    dtravis7's Avatar
    Member Since
    Jan 04, 2005
    Modesto, Ca.
    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, 03: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, 09:26 AM
  4. Ipod video conversion question
    By bartleby in forum iPod Hardware and Accessories
    Replies: 1
    Last Post: 12-06-2006, 02:30 PM
  5. Conversion question!
    By tooteaching in forum macOS - 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