Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

CarbonEventsScrapMBS.AddData(FlavorType as string,data as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 2.8 Yes No No Yes, macOS only No
Function: Adds data to the scrap.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.AddText(Text as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 2.8 Yes No No Yes, macOS only No
Function: Adds plain text to the scrap.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.AddUnicodeText(Text as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 3.2 Yes No No Yes, macOS only No
Function: Adds 16bit unicode text to the scrap.
Notes: Your string must be in 16 bit unicode. Else you may run into crashes.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.clear
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 2.8 Yes No No Yes, macOS only No
Function: Clears the scrap.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.DataAvailable(FlavorType as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 2.8 Yes No No Yes, macOS only No
Function: Looks whether data is available or not for this type.
Notes:
This function is much faster then if you use datasize.
Returns false on any error.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.DataSize(FlavorType as string) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 2.8 Yes No No Yes, macOS only No
Function: Returns the data size of an item in the scrap.
Notes:
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.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.FlavorCount as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 12.4 Yes No No No No
Function: The number of flavor in the clipboard.
Notes: Calling this function recreates the internal flavor list.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.FlavorFlags(index as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 12.4 Yes No No No No
Function: Returns the flags of the given flavor.
Notes:
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

Feedback, Comments & Corrections

CarbonEventsScrapMBS.FlavorType(index as Integer) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 12.4 Yes No No No No
Function: Returns the type of the given flavor.
Notes:
Index goes from 0 to count-1.
Returns "" on any error.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.GetData(FlavorType as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 2.8 Yes No No Yes, macOS only No
Function: Returns the data of an item in the scrap.
Notes:
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.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.GetFile(byref file as folderitem) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 7.1 Yes No No Yes, macOS only No
Function: Trys to get a file reference from the scrap.
Notes:
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:

Feedback, Comments & Corrections

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 Console & Web iOS
method Carbon Events MBS MacCF Plugin 7.1 Yes No No Yes, macOS only No
Function: Trys to get a file reference from the scrap.
Notes:
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:

Feedback, Comments & Corrections

CarbonEventsScrapMBS.GetText as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 2.8 Yes No No Yes, macOS only No
Function: Returns the plain text from the scrap.
Notes:
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.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.GetUnicodeText as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 3.2 Yes No No Yes, macOS only No
Function: Returns the unicode text from the scrap.
Notes:
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.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.PictAvailable as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 2.8 Yes No No Yes, macOS only No
Function: Looks whether Mac PICT data is available.
Notes: Returns false on any error.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.TextAvailable as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 2.8 Yes No No Yes, macOS only No
Function: Like Dataavailable, but just for text.
Notes:
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.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.TextSize as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 2.8 Yes No No Yes, macOS only No
Function: Like DataSize, but just for text.
Notes:
Checks only for plain TEXT, not for unicode or styled text.
Returns 0 on any error.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.UnicodeTextAvailable as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 3.2 Yes No No Yes, macOS only No
Function: True if unicode text is available.
Notes:
This function is much faster then if you use UnicodeTextsize.
Returns false on any error.

Feedback, Comments & Corrections

CarbonEventsScrapMBS.UnicodeTextSize as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Carbon Events MBS MacCF Plugin 3.2 Yes No No Yes, macOS only No
Function: Returns the number of available characters in the unicode string part of the scrap.
Notes: Returns 0 on any error.

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo tutorial videos