MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

NSViewMBS.acceptsTouchEvents as boolean
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 9.6, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Whether the view will accept touch events.
Notes:
Available in Mac OS X v10.6 and later.
(Read and Write property)
NSViewMBS.allowsVibrancy as Boolean
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 14.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.alphaValue as Double
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 7.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.autoresizesSubviews as boolean
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: True if the receiver automatically resizes its subviews using resizeSubviewsWithOldSize whenever its frame size changes, false otherwise.
Notes: (Read and Write property)
NSViewMBS.autoresizingMask as Integer
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.bounds as NSRectMBS
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 9.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.boundsRotation as Double
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 7.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: The angle, in degrees, of the view's bounds rectangle relative to its frame rectangle.
Notes: (Read and Write property)
NSViewMBS.canBecomeKeyView as boolean
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 13.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns whether the receiver can become key view.
Notes:
Returns true if the receiver can become key view, false otherwise.
(Read only property)
NSViewMBS.canDraw as boolean
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 9.6, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.canDrawConcurrently as boolean
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 9.6, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.className as string
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 9.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: The name of this NSView class.
Example:
// shows RBNSButton
MsgBox checkbox1.NSViewMBS.className
Notes: (Read only property)
NSViewMBS.classPath as string
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.0, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.focusRingType as Integer
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 8.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.frame as NSRectMBS
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 9.4, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.frameCenterRotation as Double
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 9.6, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.frameHeight as Double
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 9.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.frameLeft as Double
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 9.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.frameRotation as Double
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 7.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.frameTop as Double
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 9.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.frameWidth as Double
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 9.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.identifier as string
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 13.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.isFlipped as Boolean
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 7.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: True if the nsview uses flipped drawing coordinates or false if it uses native coordinates.
Notes: (Read only property)
NSViewMBS.isHidden as Boolean
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 7.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Whether the receiver is marked as hidden.
Notes: (Read and Write property)
NSViewMBS.isHiddenOrHasHiddenAncestor as Boolean
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 7.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.isOpaque as Boolean
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 7.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Overridden by subclasses to return true if the view is opaque, false otherwise.
Notes: (Read only property)
NSViewMBS.isRotatedFromBase as Boolean
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 7.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.isRotatedOrScaledFromBase as Boolean
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 7.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.layer as Variant
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 13.1, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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)
NSViewMBS.needsDisplay as Boolean
property, Cocoa, MBS CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 7.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: whether the view needs to be displayed.
Notes: (Read and Write property)

Next items

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




Links
MBS Real Studio Plugins