Platforms to show: All Mac Windows Linux Cross-Platform

ResourceForkMBS.Handle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Files MBS MacClassic Plugin 13.0 Yes No No Yes, macOS only No
Function: The internal handle to the resource fork.
Notes: (Read only property)

Feedback, Comments & Corrections

ResourceForkMBS.LastError as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Files MBS MacClassic Plugin 13.0 Yes No No Yes, macOS only No
Function: The last error code.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.rsrc")
dim r as ResourceForkMBS = ResourceForkMBS.Open(f, false) // open read only

r.AddResource "Hello World", "TEXT", 128, "just a test"
MsgBox str(R.LastError) // shows -61, write permission error
Notes:
All methods set this property.
(Read and Write property)

Feedback, Comments & Corrections

ResourceForkMBS.Modified as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Files MBS MacClassic Plugin 13.0 Yes No No Yes, macOS only No
Function: Whether the resource fork has been modified by you.
Notes: (Read only property)

Feedback, Comments & Corrections

ResourceForkMBS.TypeCount as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Files MBS MacClassic Plugin 13.0 Yes No No Yes, macOS only No
Function: The number of resource types present in the resource fork.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.rsrc")
dim r as ResourceForkMBS = ResourceForkMBS.create(f)

r.AddResource "Hello World", "TEXT", 128, "just a test"

MsgBox str(r.TypeCount) // shows 1
Notes: (Read only property)

Feedback, Comments & Corrections

ResourceForkMBS.Writable as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Files MBS MacClassic Plugin 13.0 Yes No No Yes, macOS only No
Function: Whether the resourcefork was opened writable.
Notes: (Read only property)

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo Plugins