The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   Omni Frameworks (http://forums.omnigroup.com/forumdisplay.php?f=16)
-   -   Select and highlight w/o editing (http://forums.omnigroup.com/showthread.php?t=16391)

Jason J 2010-06-06 11:53 AM

Select and highlight w/o editing
 
I've just discovered the Omni Frameworks for iPad, et al. WOW!

I working on reader where I would like a user to be able select a word but I don't want to invoke the keyboard/edit. I just want to know what word they touched and to be able to highlight it in some fashion.

I've just begun exploring the code and any pointers would be most appreciated.

thanks.

dbonates 2010-08-31 08:34 AM

[QUOTE=Jason J;78186]I've just discovered the Omni Frameworks for iPad, et al. WOW!

I working on reader where I would like a user to be able select a word but I don't want to invoke the keyboard/edit. I just want to know what word they touched and to be able to highlight it in some fashion.

I've just begun exploring the code and any pointers would be most appreciated.

thanks.[/QUOTE]

Im on the same exact boat! I just wanna let the user select/highlight the text. I"ll try to find my way with this great oportutinty from Omni source, but I ask any1 with more experience on this, to jump on the same spirit of sharing knowledge, and help us.

I'll post here any info/direction as I get them, ok?

Thanks in advance :)

Tim Wood 2010-09-10 08:09 AM

You may be able to add a flag or delegate method to OUIEditableFrame to specify whether it edits. If it isn't configured to edit, you could then return NO from -canBecomeFirstResponder ... not sure what other issues you might run into after this since we haven't needed this capability yet. My guess is that you'd not get the selection controls w/o further tweaking.

We do have some hit testing in OUITextLayout for things like tapping links, but not for selecting/highlighting.


All times are GMT -8. The time now is 04:28 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.