Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSImageRepMBS class.

NSImageRepMBS.canInitWithData(data as memoryblock) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns a Boolean value indicating whether the receiver can initialize itself from the specified data.

Returns true if the receiver understands the format of the specified data and can use it to initialize itself; otherwise, false.

This method should be overridden by subclasses. Note that this method does not need to do a comprehensive check of the image data; it should return false only if it knows it cannot initialize itself from the data.

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


The biggest plugin in space...