Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

captainritalin

macrumors member
Original poster
Mar 15, 2009
34
0
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?
 

HiRez

macrumors 603
Jan 6, 2004
6,250
2,576
Western US
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.
 

boast

macrumors 65816
Nov 12, 2007
1,407
860
Phoenix, USA
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.
 

HiRez

macrumors 603
Jan 6, 2004
6,250
2,576
Western US
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.