Platforms to show: All Mac Windows Linux Cross-Platform

WebPreferencesMBS.allowsAnimatedImageLooping as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether animated image files are allowed to loop.
Example:
HTMLViewer1.preferencesMBS.allowsAnimatedImageLooping = false
Notes: (Read and Write computed property)
WebPreferencesMBS.allowsAnimatedImages as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether to allow animated images.
Example:
HTMLViewer1.preferencesMBS.allowsAnimatedImages = false
Notes:
e.g. GIF images.
(Read and Write computed property)
WebPreferencesMBS.arePlugInsEnabled as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether plugins are enabled.
Example:
HTMLViewer1.preferencesMBS.arePlugInsEnabled=False
Notes: (Read and Write computed property)
WebPreferencesMBS.autosaves as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether preferences are saved automatically.
Example:
HTMLViewer1.preferencesMBS.autosaves = false
Notes:
If autosave preferences is true the settings represented by WebPreferences will be stored in the user defaults database.
(Read and Write computed property)
WebPreferencesMBS.cacheModel as Integer
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 9.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function:
The usage model according to which WebKit determines its
caching behavior.
Example:
HTMLViewer1.preferencesMBS.cacheModel = WebPreferencesMBS.WebCacheModelDocumentViewer
Notes:
Specifies a usage model for a WebView, which WebKit will use to
determine its caching behavior.

If necessary, WebKit will prune its caches to match cacheModel if you set the value.

Research indicates that users tend to browse within clusters of
documents that hold resources in common, and to revisit previously visited
documents. WebKit and the frameworks below it include built-in caches that take
advantage of these patterns, substantially improving document load speed in
browsing situations. The WebKit cache model controls the behaviors of all of
these caches, including NSURLCache and the various WebCore caches.

Applications with a browsing interface can improve document load speed
substantially by specifying WebCacheModelDocumentBrowser. Applications without
a browsing interface can reduce memory usage substantially by specifying
WebCacheModelDocumentViewer.

If cacheModel is not set, WebKit will select a cache model automatically.
(Read and Write computed property)
class WebPreferencesMBS
class, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: A class for handling webkit preferences.
Example:
MsgBox WebPreferencesMBS.standardPreferences.serifFontFamily
Notes: All methods in this class will catch exceptions from Cocoa and raise a NSExceptionMBS instead. Using the message, name and reason properties you can see what was the reason for this exception. Please report if you find a method which does not handle exceptions correct.
WebPreferencesMBS.Constructor
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The dummy constructor to create an empty object.

See also:

WebPreferencesMBS.Constructor(identifier as String)
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates a new WebPreferences object with loading the values stored with the given identifier.
Example:
dim w as new WebPreferencesMBS("de.monkeybreadsoftware.mytest")
Notes: On success handle is not zero.

See also:

WebPreferencesMBS.cursiveFontFamily as String
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The name of the cursive font family.
Example:
MsgBox HTMLViewer1.preferencesMBS.cursiveFontFamily
Notes: (Read and Write computed property)
WebPreferencesMBS.defaultFixedFontSize as Integer
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The default font size for fixed fonts.
Example:
MsgBox str(WebPreferencesMBS.standardPreferences.defaultFixedFontSize)
Notes: (Read and Write computed property)
WebPreferencesMBS.defaultFontSize as Integer
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The default font size for fonts.
Example:
MsgBox str(HTMLViewer1.preferencesMBS.defaultFontSize)
Notes:
(for non fixed fonts)
(Read and Write computed property)
WebPreferencesMBS.defaultTextEncodingName as String
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The name of the default text encoding.
Example:
MsgBox HTMLViewer1.preferencesMBS.defaultTextEncodingName
Notes: (Read and Write computed property)
WebPreferencesMBS.fantasyFontFamily as String
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The name of the fantasy font family.
Example:
MsgBox HTMLViewer1.preferencesMBS.fantasyFontFamily
Notes: (Read and Write computed property)
WebPreferencesMBS.fixedFontFamily as String
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The name of the fixed font family.
Example:
MsgBox HTMLViewer1.preferencesMBS.fixedFontFamily
Notes: (Read and Write computed property)
WebPreferencesMBS.Handle as Integer
property, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The internal used reference to the WebPreferences object.
Example:
MsgBox str(WebPreferencesMBS.standardPreferences.Handle)
Notes: (Read and Write property)
WebPreferencesMBS.identifier as String
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The identifier for this WebPreferences.
Example:
MsgBox HTMLViewer1.preferencesMBS.identifier
WebPreferencesMBS.isJavaEnabled as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether java is enabled.
Example:
HTMLViewer1.preferencesMBS.isJavaEnabled = false
Notes: (Read and Write computed property)
WebPreferencesMBS.isJavaScriptEnabled as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether Javascript is enabled.
Example:
HTMLViewer1.preferencesMBS.isJavaScriptEnabled = false
Notes: (Read and Write computed property)
WebPreferencesMBS.javaScriptCanOpenWindowsAutomatically as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether javascript is allowed to open windows automatically.
Example:
HTMLViewer1.preferencesMBS.javaScriptCanOpenWindowsAutomatically = false
Notes: (Read and Write computed property)
WebPreferencesMBS.loadsImagesAutomatically as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether images are loaded automatically.
Example:
HTMLViewer1.preferencesMBS.loadsImagesAutomatically = false
Notes: (Read and Write computed property)
WebPreferencesMBS.minimumFontSize as Integer
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The minimum font size.
Example:
MsgBox str(HTMLViewer1.preferencesMBS.minimumFontSize)
Notes: (Read and Write computed property)
WebPreferencesMBS.minimumLogicalFontSize as Integer
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The minimum logical font size.
Example:
MsgBox str(HTMLViewer1.preferencesMBS.minimumLogicalFontSize)
Notes: (Read and Write computed property)
WebPreferencesMBS.privateBrowsingEnabled as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether private browsing is enabled.
Example:
HTMLViewer1.preferencesMBS.privateBrowsingEnabled = false
Notes:
If private browsing is enabled, WebKit will not store information about sites the user visits.
(Read and Write computed property)
WebPreferencesMBS.sansSerifFontFamily as String
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The name of the sans serif font family.
Example:
MsgBox HTMLViewer1.preferencesMBS.sansSerifFontFamily
Notes: (Read and Write computed property)
WebPreferencesMBS.serifFontFamily as String
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The name of the serif font family.
Example:
MsgBox HTMLViewer1.preferencesMBS.serifFontFamily
Notes: (Read and Write computed property)
WebPreferencesMBS.shouldPrintBackgrounds as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether webkit draws background on printing.
Example:
HTMLViewer1.preferencesMBS.shouldPrintBackgrounds = false
Notes: (Read and Write computed property)
WebPreferencesMBS.standardFontFamily as String
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The name of the standard font family.
Example:
MsgBox HTMLViewer1.preferencesMBS.standardFontFamily
Notes: (Read and Write computed property)
WebPreferencesMBS.standardPreferences as WebPreferencesMBS
shared method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the default preferences.
Example:
MsgBox WebPreferencesMBS.standardPreferences.identifier
Notes: nil on any error.
WebPreferencesMBS.tabsToLinks as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether the tab key will move focus on links.
Example:
HTMLViewer1.preferencesMBS.tabsToLinks = false
Notes:
If tabsToLinks is true, the tab key will focus links and form controls.
The option key temporarily reverses this preference.
(Read and Write computed property)
WebPreferencesMBS.userStyleSheetEnabled as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether an user style sheet is enabled.
Example:
HTMLViewer1.preferencesMBS.userStyleSheetEnabled = false
Notes: (Read and Write computed property)
WebPreferencesMBS.userStyleSheetLocation as folderitem
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The location of the user style sheet.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.css")
HTMLViewer1.preferencesMBS.userStyleSheetLocation = f
Notes: (Read and Write computed property)
WebPreferencesMBS.usesPageCache as boolean
method, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Console safe, Plugin version: 9.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether the receiver should use the shared page cache.
Example:
HTMLViewer1.preferencesMBS.usesPageCache = false
Notes:
Pages are cached as they are added to a WebBackForwardList, and removed from the cache as they are removed from a WebBackForwardList. Because the page cache is global, caching a page in one WebBackForwardList may cause a page in another WebBackForwardList to be evicted from the cache.
(Read and Write computed property)
WebPreferencesMBS.WebCacheModelDocumentBrowser=1
const, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function:
One of the constants for the usage model for a WebView, which WebKit will use to
determine its caching behavior.
Example:
HTMLViewer1.preferencesMBS.cacheModel = WebPreferencesMBS.WebCacheModelDocumentBrowser
Notes:
Appropriate for a WebView displaying a browsable series of documents with a UI for navigating between them -- for example, a reference materials browser or a website designer. The WebView will cache a reasonable number of resources and previously viewed documents in memory and/or on disk.

Examples: Dictionary, Help Viewer, Coda.
WebPreferencesMBS.WebCacheModelDocumentViewer=0
const, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function:
One of the constants for the usage model for a WebView, which WebKit will use to
determine its caching behavior.
Example:
HTMLViewer1.preferencesMBS.cacheModel = WebPreferencesMBS.WebCacheModelDocumentViewer
Notes:
Appropriate for a WebView displaying a fixed document -- like a splash screen, a chat document, or a word processing document -- with no UI for navigation. The WebView will behave like any other view, releasing resources when they are no longer referenced. Remote resources, if any, will be cached to disk. This is the most memory-efficient setting.

Examples: iChat, Mail, TextMate, Growl.
WebPreferencesMBS.WebCacheModelPrimaryWebBrowser=2
const, HTMLViewer, MBS REALbasic CocoaBase Plugin (HTMLViewerWeb), class WebPreferencesMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function:
One of the constants for the usage model for a WebView, which WebKit will use to
determine its caching behavior.
Example:
HTMLViewer1.preferencesMBS.cacheModel = WebPreferencesMBS.WebCacheModelPrimaryWebBrowser
Notes:
Appropriate for a WebView in the application that acts as the user's primary web browser. The WebView will cache a very large number of resources and previously viewed documents in memory and/or on disk.

Examples: Safari, OmniWeb, Shiira.

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




Links
MBS REAL studio tutorial videos - Nachhilfe in Nickenich