Carbon CFString

This is a discussion on Carbon CFString within the Tech Board forums, part of the Community Boards category; I know how to draw a CFString to a text control in carbon with CFRelease and DrawOneControl, but I can't ...

  1. #1
    Registered User
    Join Date
    Nov 2004
    Posts
    86

    Carbon CFString

    I know how to draw a CFString to a text control in carbon with CFRelease and DrawOneControl, but I can't find a function to do the opposite.

    how do I read the CFString value of an editable text control?

  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    I don't know how helpful this is, but in Cocoa you can

    [textField stringValue];

  3. #3
    Registered User
    Join Date
    Nov 2004
    Posts
    86
    it might be helpful if I had a little context with which to see how to use it

  4. #4
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230


    NSString *mystring = [textField stringValue];

    I told you, it's Cocoa and Objective-C. I just figured that Carbon text controls might have a similar stringValue function.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with project
    By Noori88 in forum C Programming
    Replies: 8
    Last Post: 04-24-2007, 06:06 AM
  2. Carbon help
    By pktcperlc++java in forum C++ Programming
    Replies: 1
    Last Post: 03-26-2005, 05:02 PM
  3. Help! Right Math, Wrong Output
    By verd in forum C Programming
    Replies: 12
    Last Post: 03-15-2005, 06:49 PM
  4. OS X Carbon GUI
    By Exile in forum C Programming
    Replies: 0
    Last Post: 02-05-2005, 09:43 PM
  5. Genetic manipulation of humans?
    By The V. in forum A Brief History of Cprogramming.com
    Replies: 38
    Last Post: 12-05-2001, 08:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21