Platforms to show: All Mac Windows Linux Cross-Platform

Back to CarbonEventsScrapMBS class.

CarbonEventsScrapMBS.AddData(FlavorType as string,data as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Adds data to the scrap.

CarbonEventsScrapMBS.AddText(Text as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Adds plain text to the scrap.

CarbonEventsScrapMBS.AddUnicodeText(Text as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 3.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Adds 16bit unicode text to the scrap.

Your string must be in 16 bit unicode. Else you may run into crashes.

CarbonEventsScrapMBS.clear

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Clears the scrap.

CarbonEventsScrapMBS.DataAvailable(FlavorType as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Looks whether data is available or not for this type.

This function is much faster then if you use datasize.
Returns false on any error.

CarbonEventsScrapMBS.DataSize(FlavorType as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the data size of an item in the scrap.

Some data provider generate the data for the scrap only if you read it, so this function may be slower than just DataAvailable.
Returns 0 on any error.

CarbonEventsScrapMBS.FlavorCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The number of flavor in the clipboard.

Calling this function recreates the internal flavor list.

CarbonEventsScrapMBS.FlavorFlags(index as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the flags of the given flavor.

Index goes from 0 to count-1.
Returns 0 on any error.

Flags are a combination of type values:
1 - private data (Sender only)
2 - translated data

CarbonEventsScrapMBS.FlavorType(index as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 12.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the type of the given flavor.

Index goes from 0 to count-1.
Returns "" on any error.

CarbonEventsScrapMBS.GetData(FlavorType as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the data of an item in the scrap.

Some data provider generate the data for the scrap only if you read it, so this function may be slower than just DataAvailable.
Returns "" on any error.

CarbonEventsScrapMBS.GetFile(byref file as folderitem) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Trys to get a file reference from the scrap.

Returns true on success and false on failure.
On newer Mac OS X versions with 12.4 plugin, we fixed this function. But there we can't provide type, creator and flags.

See also:

CarbonEventsScrapMBS.GetFile(byref file as folderitem, byref type as string, byref creator as string, byref flags as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Trys to get a file reference from the scrap.

Returns true on success and false on failure.
Type and Creator are the Mac OS 9 file types.
flags are the normal Finderflags as you get them if using GetFileFlagsMBS(file).

On newer Mac OS X versions with 12.4 plugin, we fixed this function. But there we can't provide type, creator and flags.

See also:

CarbonEventsScrapMBS.GetText as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the plain text from the scrap.

Some data provider generate the data for the scrap only if you read it, so this function may be slower than just TextAvailable.
Returns "" on any error.

CarbonEventsScrapMBS.GetUnicodeText as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 3.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the unicode text from the scrap.

Some data provider generate the data for the scrap only if you read it, so this function may be slower than just TextAvailable.
Returns "" on any error.

CarbonEventsScrapMBS.PictAvailable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Looks whether Mac PICT data is available.

Returns false on any error.

CarbonEventsScrapMBS.TextAvailable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Like Dataavailable, but just for text.

This function is much faster then if you use Textsize.
Checks only for plain TEXT, not for unicode or styled text.
Returns false on any error.

CarbonEventsScrapMBS.TextSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Like DataSize, but just for text.

Checks only for plain TEXT, not for unicode or styled text.
Returns 0 on any error.

CarbonEventsScrapMBS.UnicodeTextAvailable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 3.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
True if unicode text is available.

This function is much faster then if you use UnicodeTextsize.
Returns false on any error.

CarbonEventsScrapMBS.UnicodeTextSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Carbon Events MBS MacCF Plugin 3.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the number of available characters in the unicode string part of the scrap.

Returns 0 on any error.

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...