Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

NSViewMBS.acceptsTouchEvents as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 9.6 Yes No No Yes, macOS only No
Function: Whether the view will accept touch events.
Notes:
Available in Mac OS X v10.6 and later.
(Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.allowsVibrancy as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 14.3 Yes No No Yes, macOS only No
Function: allowsVibrancy is queried when a vibrant appearance is used on a view hierarchy.
Notes:
When allowsVibrancy returns YES, the view will have an appropriate measure taken to ensure it is vibrant on top of its given material.
Specific subclasses, such as NSControl, will answer this question based on the artwork they draw for a given appearance.
(Read only property)

Feedback, Comments & Corrections

NSViewMBS.alphaValue as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 7.7 Yes No No Yes, macOS only No
Function: the opacity of the view.
Example:
// makes a checkbox half transparent on Cocoa target:
CheckBox1.NSViewMBS.alphaValue = 0.5
Notes:
This method returns the value of the opacity property of the view's layer. Possible values are between 0.0 (transparent) and 1.0 (opaque). The default is 1.0.

Sending this message to a view that is not managing a Core Animation layer causes an exception.
(Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.autoresizesSubviews as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 8.4 Yes No No Yes, macOS only No
Function: True if the receiver automatically resizes its subviews using resizeSubviewsWithOldSize whenever its frame size changes, false otherwise.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.autoresizingMask as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 8.4 Yes No No Yes, macOS only No
Function: The receiver's autoresizing mask, which determines how it's resized by the resizeWithOldSuperviewSize method.
Notes:
If the autoresizing mask is equal to NSViewNotSizable (that is, if none of the options are set), then the receiver doesn't resize at all in resizeWithOldSuperviewSize.

NSViewNotSizable = 0The receiver cannot be resized.
NSViewMinXMargin = 1The left margin between the receiver and its superview is flexible.
NSViewWidthSizable = 2The receiver's width is flexible.
NSViewMaxXMargin = 4The right margin between the receiver and its superview is flexible.
NSViewMinYMargin = 8The bottom margin between the receiver and its superview is flexible.
NSViewHeightSizable = 16The receiver's height is flexible.
NSViewMaxYMargin = 32The top margin between the receiver and its superview is flexible.
(Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.bounds as NSRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 9.4 Yes No No Yes, macOS only No
Function: Returns the receiver's bounds rectangle, which expresses its location and size in its own coordinate system.
Example:
dim n as new NSProgressIndicatorMBS
n.sizeToFit

MsgBox n.bounds.String
Notes:
The bounds rectangle may be rotated; use the boundsRotation method to check this.
(Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.boundsRotation as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 7.7 Yes No No Yes, macOS only No
Function: The angle, in degrees, of the view's bounds rectangle relative to its frame rectangle.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.canBecomeKeyView as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 13.2 Yes No No Yes, macOS only No
Function: Returns whether the receiver can become key view.
Notes:
Returns true if the receiver can become key view, false otherwise.
(Read only property)

Feedback, Comments & Corrections

NSViewMBS.canDraw as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns true if drawing commands will produce any result, false otherwise.
Notes:
Use this method when invoking a draw method directly along with lockFocus and unlockFocus, bypassing the display... methods (which test drawing ability and perform locking for you). If this method returns false, you shouldn't invoke lockFocus or perform any drawing.

A view object can draw on-screen if it is not hidden, it is attached to a view hierarchy in a window (NSWindow), and the window has a corresponding window device. A view object can draw during printing if it is a descendant of the view being printed.

To draw into a NSView, use either CustomNSViewMBS class with drawRect event or NSGraphicsMBS class.
(Read only property)

Feedback, Comments & Corrections

NSViewMBS.canDrawConcurrently as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 9.6 Yes No No Yes, macOS only No
Function: Whether the view's drawRect: method can be invoked on a background thread.
Notes:
Available in Mac OS X v10.6 and later.
(Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.className as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 9.7 Yes No No Yes, macOS only No
Function: The name of this NSView class.
Example:
// shows RBNSButton
MsgBox checkbox1.NSViewMBS.className
Notes: (Read only property)

Feedback, Comments & Corrections

NSViewMBS.classPath as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 10.0 Yes No No Yes, macOS only No
Function: The path of this NSView class.
Example:
MsgBox TextArea1.NSViewMBS.classPath
// shows "RBNSScrollView:NSScrollView:NSView:NSResponder:NSObject"
Notes:
Useful for debugging to know what super classes the view has.
(Read only property)

Feedback, Comments & Corrections

NSViewMBS.focusRingType as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 8.4 Yes No No Yes, macOS only No
Function: The type of focus ring to be drawn around the receiver.
Notes:
This method only sets the desired focus ring type and does not cause the view to draw the actual focus ring. You are responsible for drawing the focus ring in your view's drawRect method whenever your view is made the first responder.

possible values:
NSFocusRingTypeDefault0
NSFocusRingTypeNone1
NSFocusRingTypeExterior2
(Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.frame as NSRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 9.4 Yes No No Yes, macOS only No
Function: Returns the frame size and position of the view.
Example:
dim n as new NSProgressIndicatorMBS
n.sizeToFit

MsgBox n.frame.String
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.frameCenterRotation as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 9.6 Yes No No Yes, macOS only No
Function: The receiver's rotation about the layer's position.
Notes:
If the application has altered the layer's anchorPoint property, the behavior is undefined. Sending this message to a view that is not managing a Core Animation layer causes an exception.

Available in Mac OS X v10.5 and later.
(Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.frameHeight as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 9.7 Yes No No Yes, macOS only No
Function: The height of the view frame.
Example:
dim n as new NSProgressIndicatorMBS
MsgBox str(n.frameHeight)
Notes:
This is a convenience property which calls the frame function to get the current rectangle, changes the value and sets the frame to the new rectangle.
(Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.frameLeft as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 9.7 Yes No No Yes, macOS only No
Function: The left position of the view frame.
Example:
dim n as new NSProgressIndicatorMBS
MsgBox str(n.frameLeft)
Notes:
This is a convenience property which calls the frame function to get the current rectangle, changes the value and sets the frame to the new rectangle.
(Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.frameRotation as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 7.7 Yes No No Yes, macOS only No
Function: The angle, in degrees, of the view's frame relative to its superview's coordinate system.
Notes:
dim n as new NSProgressIndicatorMBS
n.frameRotation=10
MsgBox str(n.frameRotation)
(Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.frameTop as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 9.7 Yes No No Yes, macOS only No
Function: The top position of the view frame.
Example:
dim n as new NSProgressIndicatorMBS
MsgBox str(n.frameTop)
Notes:
This is a convenience property which calls the frame function to get the current rectangle, changes the value and sets the frame to the new rectangle.
(Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.frameWidth as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 9.7 Yes No No Yes, macOS only No
Function: The width of the view frame.
Example:
dim n as new NSProgressIndicatorMBS
MsgBox str(n.frameWidth)
Notes:
This is a convenience property which calls the frame function to get the current rectangle, changes the value and sets the frame to the new rectangle.
(Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.identifier as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 13.2 Yes No No Yes, macOS only No
Function: A string that identifies this user interface item.
Notes:
It should be set to a unique value on NSViews when they are intended to be used inside a view-based NSTableView. Identifiers should be unique per-window. For programmatically created user interface items, you would typically set this value in code after creating a control but before adding it to a window. You may also want to set an identifier on a window, after creating it programmatically, to identify the window easily when it is reopened. You should not change the identifier after a control is added to a window. Identifiers beginning with an underscore are reserved for the system. In framework classes that implement this protocol, the accessor methods are not intended to be overridden.

To help avoid collision of identifiers, it is recommended that identifiers use the same prefix as is used for the framework or application. For example, identifiers for standard AppKit interface items, such as the open panel, will begin with "NS".

The slash '/', backslash '\', and colon ':' characters are reserved and should not be used in identifiers.
(Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.isFlipped as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 7.7 Yes No No Yes, macOS only No
Function: True if the nsview uses flipped drawing coordinates or false if it uses native coordinates.
Notes: (Read only property)

Feedback, Comments & Corrections

NSViewMBS.isHidden as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 7.7 Yes No No Yes, macOS only No
Function: Whether the receiver is marked as hidden.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.isHiddenOrHasHiddenAncestor as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 7.7 Yes No No Yes, macOS only No
Function: True if the nsview is marked as hidden or has an ancestor in the view hierarchy that is marked as hidden; returns false otherwise.
Notes: (Read only property)

Feedback, Comments & Corrections

NSViewMBS.isOpaque as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 7.7 Yes No No Yes, macOS only No
Function: Overridden by subclasses to return true if the view is opaque, false otherwise.
Notes: (Read only property)

Feedback, Comments & Corrections

NSViewMBS.isRotatedFromBase as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 7.7 Yes No No Yes, macOS only No
Function: True if the nsview or any of its ancestors has ever set a FrameRotation or BoundsRotation properties; otherwise returns false.
Notes: (Read only property)

Feedback, Comments & Corrections

NSViewMBS.isRotatedOrScaledFromBase as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 7.7 Yes No No Yes, macOS only No
Function: True if the nsview or any of its ancestors has ever had a nonzero frame or bounds rotation, or has been scaled from the window's base coordinate system; otherwise returns false.
Notes:
The intent of this information is to optimize drawing and coordinate calculation, not necessarily to reflect the exact state of the receiver's coordinate system, so it may not reflect the actual rotation or scaling. For example, if an NSView object is rotated to 45 degrees and later back to 0, this method still returns true.
(Read only property)

Feedback, Comments & Corrections

NSViewMBS.layer as Variant
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 13.1 Yes No No Yes, macOS only No
Function: Returns or sets the Core Animation layer that the receiver uses as its backing store.
Notes:
Value is a CALayerMBS object.
Available in OS X v10.5 and later.
(Read and Write property)

Feedback, Comments & Corrections

NSViewMBS.needsDisplay as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacBase Plugin 7.7 Yes No No Yes, macOS only No
Function: whether the view needs to be displayed.
Notes: (Read and Write property)

Feedback, Comments & Corrections

Next items

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




Links
MBS Xojo Plugins