[futurebasic] Re: [FB] Sending container text to a text field in a nib

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2009 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Sun, 25 Jan 2009 19:19:29 -0500
Rich Love wrote:

> I am trying send the contents of a container to a text field in a  
> nib window.
> But it will only send 255 characters to the text field.
>
> I am using this command to send text to the text field
> def SetButtonTextString( _myTextField, myContainer )It always  
> truncates the text at 255 characters.



Rich,

I will try to put together a simple code sample for you, but one way  
to get the container contents into the field created with the nib is:

1. Get a handle to the container.

2. Convert that handle to a CFString. (In theory the length of a  
CFString is limited only be available memory.)

3. Place the CFString contents into the field with standard Carbon  
toolbox functions.

Ken