[futurebasic] Re: [FB] CFStringies

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2011 : Group Archive : Group : All Groups

From: Steve <mactech@...>
Date: Tue, 29 Nov 2011 16:02:34 -0500
dim as CFStringRef  sortedName
dim as Str255 PascalString

PascalString = "Sorted "  + name 

sortedName = fn CFStringCreateWithPascalString( 0, PascalString, _kCFStringEncodingMacRoman ) 

CFRelease ( sortedName )

On Nov 29, 2011, at 3:43 PM, Robert Covington wrote:

> CFStrings drive me wonky, they are so much more a pain then Pascal type..because you can't work with them directly.
> 
> dim as CFStringRef name
> 
> fn CopyWindowTitleAsCFString( w, @name )
> 
> I need to add a 'Sorted ' + name to send to a Save As dialog...
> 
> 
> How do you do that in CFString land?
> 
> 
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
> To access the list archives, go to:  http://freegroups.net/groups/futurebasic/
>