New to programming. Select all/ highlighting with a mouse

Discussion in 'Mac Programming' started by captainritalin, Jul 13, 2009.

  1. captainritalin
    Expand Collapse
    macrumors member

    Joined:
    Mar 15, 2009
    #1
    Hey guys. I am somewhat new to program. The current program that i am writing needs to be able to deal with any text that is highlighted/ selected. I am absolutely clueless as to how to do that or even what highlight/select really even is. Can anyone give me some pointers in the right direction pleas?
     
  2. HiRez
    Expand Collapse
    macrumors 603

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #2
    You should probably first state what language and environment you're programming in. Are you using Cocoa/Objective-C/Xcode? Java? Python? Targeting Mac OS or iPhone? etc.
     
  3. captainritalin
    Expand Collapse
    thread starter macrumors member

    Joined:
    Mar 15, 2009
  4. boast
    Expand Collapse
    macrumors 65816

    boast

    Joined:
    Nov 12, 2007
    Location:
    AZ
    #4
    well I don't know what widget toolkit you are using, but you might want to start by looking at its API for methods to get what you ask for.
     
  5. Cinder6
    Expand Collapse
    macrumors 6502

    Cinder6

    Joined:
    Jul 9, 2009
    #5
    What don't you understand about it?
     
  6. captainritalin
    Expand Collapse
    thread starter macrumors member

    Joined:
    Mar 15, 2009
    #6
    How is it written into OS X and how do i integrate it into my programs?
     
  7. HiRez
    Expand Collapse
    macrumors 603

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #7
    Are you using the Python-Cocoa bridge (in other words using Cocoa UI elements) or just straight Python? And if the latter, what GUI toolkit are you using? Python does not have a native/built-in GUI.
     

Share This Page