[futurebasic] Re: [FB] From clipboard to container

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

From: Robert Purves <listrp@...>
Date: Fri, 30 Sep 2011 08:46:58 +1300
Ken Shmidheiser wrote:

> local fn GetTextFromPasteboard as CFStringRef
[...]
> end fn = clipString     // User must release

'Get' is wrong. By convention it means that the callee retains awnership of the returned CFString; the caller must not release the string.
'CopyTextFromPasteboard' would indicate correctly that the caller must release.

Robert P.