[futurebasic] Re: [FB] Transition from edit field to EditUnicodeTextControl

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2005 : Group Archive : Group : All Groups

From: Robert Purves <robert.purves@...>
Date: Wed, 5 Oct 2005 22:55:51 +1300
Brian Stevens wrote:


> Given your comments about getting text into and out of an  
> HITextView, is there a TXNGetDataFromCFURLRef (or a TB that  
> retrieves the data from the HITextVIew) to complement the  
> TXNSetDataFromCFURLRef used in this code?
>

The function corresponding to TXNSetDataFromCFURLRef is  
TXNWriteRangeToCFURL. Both are  
AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER, and so useless to me,  
since the old app I'm updating has to run in 10.3.


> Also, what are the getter/setter capabilities in 10.4 you've  
> mentioned? Based on your comments, I'm assuming the TB Get/Set  
> ControlData and their FB wrappers don't work in 10.4 for HITextVIew
>

Get/SetControlData do work in 10.4 but not in 10.3.  So  def  
SetButtonTextString  and  fn GetButtonTextString$  should work, once  
you have obtained an FB btnNum for the HITextViews's HIViewRef.   
(HIViewRef is another name for ControlRef.)

I have decided to go with YAST for my editable scrolling text fields,  
thus requiring the app to ship with the YAST.bundle included. It  
seems there is no major obstacle to bundling the whole app, OS X- 
style, with MakeBundle, and discreetly slipping YAST.bundle into the  
Resources directory.

Robert P.