Platforms to show: All Mac Windows Linux Cross-Platform
NSViewMBS.acceptsTouchEvents as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Whether the view will accept touch events.
Notes:
Available in Mac OS X v10.6 and later.
(Read and Write computed property)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Whether the view will accept touch events.
Notes:
Available in Mac OS X v10.6 and later.
(Read and Write computed property)
NSViewMBS.addSubview(subview as NSViewMBS)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.0, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Adds a view to the subviews so it’s displayed above its siblings.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.0, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Adds a view to the subviews so it’s displayed above its siblings.
NSViewMBS.alphaValue as double
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: the opacity of the view.
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 computed property)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: the opacity of the view.
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 computed property)
NSViewMBS.ancestorSharedWithView(view as NSViewMBS) as NSViewMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The closest ancestor shared by the receiver and a given view.
Notes: The closest ancestor or nil if there’s no such object. Returns self if aView is identical to the receiver.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The closest ancestor shared by the receiver and a given view.
Notes: The closest ancestor or nil if there’s no such object. Returns self if aView is identical to the receiver.
NSViewMBS.animator as NSViewMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.0, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Returns the proxy object for this view which animates.
Example:
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.0, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Returns the proxy object for this view which animates.
Example:
NSViewMBS.autoresizesSubviews as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: True if the receiver automatically resizes its subviews using resizeSubviewsWithOldSize whenever its frame size changes, false otherwise.
Notes: (Read and Write computed property)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: True if the receiver automatically resizes its subviews using resizeSubviewsWithOldSize whenever its frame size changes, false otherwise.
Notes: (Read and Write computed property)
NSViewMBS.autoresizingMask as Integer
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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.
(Read and Write computed property)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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 = 0 | The receiver cannot be resized. |
| NSViewMinXMargin = 1 | The left margin between the receiver and its superview is flexible. |
| NSViewWidthSizable = 2 | The receiver’s width is flexible. |
| NSViewMaxXMargin = 4 | The right margin between the receiver and its superview is flexible. |
| NSViewMinYMargin = 8 | The bottom margin between the receiver and its superview is flexible. |
| NSViewHeightSizable = 16 | The receiver’s height is flexible. |
| NSViewMaxYMargin = 32 | The top margin between the receiver and its superview is flexible. |
NSViewMBS.bounds as NSRectMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Returns the receiver’s bounds rectangle, which expresses its location and size in its own coordinate system.
Example:
Notes:
The bounds rectangle may be rotated; use the boundsRotation method to check this.
(Read and Write computed property)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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
The bounds rectangle may be rotated; use the boundsRotation method to check this.
(Read and Write computed property)
NSViewMBS.boundsRotation as double
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The angle, in degrees, of the view’s bounds rectangle relative to its frame rectangle.
Notes: (Read and Write computed property)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The angle, in degrees, of the view’s bounds rectangle relative to its frame rectangle.
Notes: (Read and Write computed property)
NSViewMBS.canDraw as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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.
NSViewMBS.canDrawConcurrently as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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 computed property)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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 computed property)
class NSViewMBS
class, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The Cocoa class for a view.
Notes: Subclass of the NSResponderMBS class.
class, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The Cocoa class for a view.
Notes: Subclass of the NSResponderMBS class.
NSViewMBS.className as string
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The name of this NSView class.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The name of this NSView class.
NSViewMBS.classPath as string
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.0, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The path of this NSView class.
Example:
Notes: Useful for debugging to know what super classes the view has.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.0, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The path of this NSView class.
Example:
MsgBox TextArea1.NSViewMBS.classPath
// shows "RBNSScrollView:NSScrollView:NSView:NSResponder:NSObject"
NSViewMBS.Constructor
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Creates a new control with size 100/100 and position 0/0
Notes: On success the handle property is not zero.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Creates a new control with size 100/100 and position 0/0
Notes: On success the handle property is not zero.
See also:
NSViewMBS.Constructor(Handle as integer)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Creates an object based on the given NSView handle.
Example:
Notes: The handle is casted to a NSView and the plugin retains this handle.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Creates an object based on the given NSView handle.
Example:
dim t as new NSTextViewMBS(0, 0, 100, 100)
dim v as new NSTextViewMBS(t.handle)
MsgBox str(v.Bounds.Width)+" x "+str(v.Bounds.Height)
See also:
NSViewMBS.Constructor(left as double, top as double, width as double, height as double)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The constructor to create a new NSView.
Notes: On success handle is set.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The constructor to create a new NSView.
Notes: On success handle is set.
See also:
NSViewMBS.convertPointFromView(point as NSPointMBS, View as NSViewMBS) as NSPointMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Converts a point from the coordinate system of a given view to that of the receiver.
Notes:
point: A point specifying a location in the coordinate system of aView.
View: The view with aPoint in its coordinate system. If View is nil, this method instead converts from window base coordinates. Otherwise, both View and the receiver must belong to the same NSWindow object.
Returns the point converted to the coordinate system of the receiver.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Converts a point from the coordinate system of a given view to that of the receiver.
Notes:
point: A point specifying a location in the coordinate system of aView.
View: The view with aPoint in its coordinate system. If View is nil, this method instead converts from window base coordinates. Otherwise, both View and the receiver must belong to the same NSWindow object.
Returns the point converted to the coordinate system of the receiver.
NSViewMBS.convertPointToView(point as NSPointMBS, View as NSViewMBS) as NSPointMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Converts a point from the receiver’s coordinate system to that of a given view.
Notes:
point: A point specifying a location in the coordinate system of the receiver.
View: The view into whose coordinate system point is to be converted. If View is nil, this method instead converts to window base coordinates. Otherwise, both View and the receiver must belong to the same NSWindow object.
Returns the point converted to the coordinate system of View.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Converts a point from the receiver’s coordinate system to that of a given view.
Notes:
point: A point specifying a location in the coordinate system of the receiver.
View: The view into whose coordinate system point is to be converted. If View is nil, this method instead converts to window base coordinates. Otherwise, both View and the receiver must belong to the same NSWindow object.
Returns the point converted to the coordinate system of View.
NSViewMBS.convertRectFromView(rect as NSRectMBS, View as NSViewMBS) as NSRectMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Converts a rectangle from the coordinate system of another view to that of the receiver.
Notes:
rect: The rectangle in aView's coordinate system.
view: The view with aRect in its coordinate system. If view is nil, this method instead converts from window base coordinates. Otherwise, both view and the receiver must belong to the same NSWindow object.
Returns the converted rectangle.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Converts a rectangle from the coordinate system of another view to that of the receiver.
Notes:
rect: The rectangle in aView's coordinate system.
view: The view with aRect in its coordinate system. If view is nil, this method instead converts from window base coordinates. Otherwise, both view and the receiver must belong to the same NSWindow object.
Returns the converted rectangle.
NSViewMBS.convertRectToView(rect as NSRectMBS, View as NSViewMBS) as NSRectMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Converts a rectangle from the receiver’s coordinate system to that of another view.
Notes:
rect: A rectangle in the receiver's coordinate system.
View: The view that is the target of the conversion operation. If View is nil, this method instead converts from window base coordinates. Otherwise, both View and the receiver must belong to the same NSWindow object.
Returns the converted rectangle.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Converts a rectangle from the receiver’s coordinate system to that of another view.
Notes:
rect: A rectangle in the receiver's coordinate system.
View: The view that is the target of the conversion operation. If View is nil, this method instead converts from window base coordinates. Otherwise, both View and the receiver must belong to the same NSWindow object.
Returns the converted rectangle.
NSViewMBS.convertSizeFromView(Size as NSSizeMBS, View as NSViewMBS) as NSSizeMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Converts a size from another view’s coordinate system to that of the receiver.
Notes:
Size: The size (width and height) in aView's coordinate system.
View: The view with Size in its coordinate system. If View is nil, this method instead converts from window base coordinates. Otherwise, both View and the receiver must belong to the same NSWindow object.
Returns the converted size, as an NSSize structure.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Converts a size from another view’s coordinate system to that of the receiver.
Notes:
Size: The size (width and height) in aView's coordinate system.
View: The view with Size in its coordinate system. If View is nil, this method instead converts from window base coordinates. Otherwise, both View and the receiver must belong to the same NSWindow object.
Returns the converted size, as an NSSize structure.
NSViewMBS.convertSizeToView(Size as NSSizeMBS, View as NSViewMBS) as NSSizeMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Converts a size from the receiver’s coordinate system to that of another view.
Notes:
Size: The size (width and height) in the receiver's coordinate system.
View: The view that is the target of the conversion operation. If View is nil, this method instead converts from window base coordinates. Otherwise, both View and the receiver must belong to the same NSWindow object.
Returns the converted size, as an NSSize structure.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Converts a size from the receiver’s coordinate system to that of another view.
Notes:
Size: The size (width and height) in the receiver's coordinate system.
View: The view that is the target of the conversion operation. If View is nil, this method instead converts from window base coordinates. Otherwise, both View and the receiver must belong to the same NSWindow object.
Returns the converted size, as an NSSize structure.
NSViewMBS.dataWithEPSInsideRect(left as double, top as double, width as double, height as double) as string
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.5, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Returns EPS data that draws the region of the receiver within a specified rectangle.
Example:
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.5, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Returns EPS data that draws the region of the receiver within a specified rectangle.
Example:
dim n as new NSProgressIndicatorMBS
n.sizeToFit
dim data as string = n.dataWithEPSInsideRect(0, 0, n.frameWidth, n.frameHeight)
dim f as FolderItem = SpecialFolder.Desktop.Child("test.ps")
dim b as BinaryStream = f.CreateBinaryFile("")
b.Write data
f.Launch
NSViewMBS.dataWithPDFInsideRect(left as double, top as double, width as double, height as double) as string
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.5, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Returns PDF data that draws the region of the receiver within a specified rectangle.
Example:
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.5, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Returns PDF data that draws the region of the receiver within a specified rectangle.
Example:
dim n as new NSProgressIndicatorMBS
n.sizeToFit
dim data as string = n.dataWithPDFInsideRect(0, 0, n.frameWidth, n.frameHeight)
dim f as FolderItem = SpecialFolder.Desktop.Child("test.pdf")
dim b as BinaryStream = f.CreateBinaryFile("")
b.Write data
f.Launch
NSViewMBS.focusRingType as Integer
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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.
(Read and Write computed property)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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.
(Read and Write computed property)
NSViewMBS.frame as NSRectMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Returns the frame size and position of the view.
Example:
Notes: (Read and Write computed property)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Returns the frame size and position of the view.
Example:
dim n as new NSProgressIndicatorMBS
n.sizeToFit
MsgBox n.frame.String
NSViewMBS.frameCenterRotation as double
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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 computed property)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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 computed property)
NSViewMBS.frameHeight as double
property, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The height of the view frame.
Example:
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)
property, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The height of the view frame.
Example:
dim n as new NSProgressIndicatorMBS
MsgBox str(n.frameHeight)
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 REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The left position of the view frame.
Example:
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)
property, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The left position of the view frame.
Example:
dim n as new NSProgressIndicatorMBS
MsgBox str(n.frameLeft)
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
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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 computed property)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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 computed property)
NSViewMBS.frameTop as double
property, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The top position of the view frame.
Example:
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)
property, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The top position of the view frame.
Example:
dim n as new NSProgressIndicatorMBS
MsgBox str(n.frameTop)
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 REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The width of the view frame.
Example:
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)
property, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 9.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: The width of the view frame.
Example:
dim n as new NSProgressIndicatorMBS
MsgBox str(n.frameWidth)
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.isDescendantOf(view as NSViewMBS) as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: True if the receiver is a subview of a given view or if it’s identical to that view; otherwise, it returns false.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: True if the receiver is a subview of a given view or if it’s identical to that view; otherwise, it returns false.
NSViewMBS.isFlipped as Boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: True if the nsview uses flipped drawing coordinates or false if it uses native coordinates.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: True if the nsview uses flipped drawing coordinates or false if it uses native coordinates.
NSViewMBS.isHidden as Boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Whether the receiver is marked as hidden.
Notes: (Read and Write computed property)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Whether the receiver is marked as hidden.
Notes: (Read and Write computed property)
NSViewMBS.isHiddenOrHasHiddenAncestor as Boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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.
NSViewMBS.isOpaque as Boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Overridden by subclasses to return true if the view is opaque, false otherwise.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: Overridden by subclasses to return true if the view is opaque, false otherwise.
NSViewMBS.isRotatedFromBase as Boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: True if the nsview or any of its ancestors has ever set a FrameRotation or BoundsRotation properties; otherwise returns false.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: True if the nsview or any of its ancestors has ever set a FrameRotation or BoundsRotation properties; otherwise returns false.
NSViewMBS.isRotatedOrScaledFromBase as Boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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.
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, 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.
NSViewMBS.needsDisplay as Boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: whether the view needs to be displayed.
Notes: (Read and Write computed property)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 7.7, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: whether the view needs to be displayed.
Notes: (Read and Write computed property)
NSViewMBS.NSBezelBorder = 2
const, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the constants to specify the type of a view’s border.
Notes: A concave border that makes the view look sunken.
const, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the constants to specify the type of a view’s border.
Notes: A concave border that makes the view look sunken.
NSViewMBS.NSFocusRingTypeDefault = 0
const, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the constants for the focusringtype property.
Notes: The default focus ring type for NSView or NSCell.
const, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the constants for the focusringtype property.
Notes: The default focus ring type for NSView or NSCell.
NSViewMBS.NSFocusRingTypeExterior = 2
const, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the constants for the focusringtype property.
Notes: The standard Aqua focus ring.
const, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the constants for the focusringtype property.
Notes: The standard Aqua focus ring.
NSViewMBS.NSFocusRingTypeNone = 1
const, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the constants for the focusringtype property.
Notes: No focus ring. If you set the focus ring type to this value, NSView and NSCell will not draw any focus ring.
const, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the constants for the focusringtype property.
Notes: No focus ring. If you set the focus ring type to this value, NSView and NSCell will not draw any focus ring.
NSViewMBS.NSGrooveBorder = 3
const, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the constants to specify the type of a view’s border.
Notes: A thin border that looks etched around the image.
const, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the constants to specify the type of a view’s border.
Notes: A thin border that looks etched around the image.
NSViewMBS.NSLineBorder = 1
const, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the constants to specify the type of a view’s border.
Notes: A black line border around the view.
const, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the constants to specify the type of a view’s border.
Notes: A black line border around the view.
NSViewMBS.NSNoBorder = 0
const, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the constants to specify the type of a view’s border.
Notes: No border.
const, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the constants to specify the type of a view’s border.
Notes: No border.
NSViewMBS.NSViewBoundsDidChangeNotification as string
shared method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the notification names to use with the NSView class.
Notes:
Posted whenever the NSView’s bounds rectangle changes independently of the frame rectangle, if the NSView is configured using setPostsBoundsChangedNotifications to post such notifications.
The notification object is the NSView object whose bounds rectangle has changed. This notification does not contain a userInfo dictionary.
The following methods can result in notification posting
Note that the bounds rectangle resizes automatically to track the frame rectangle. Because the primary change is that of the frame rectangle, however, setFrame and setFrameSize don’t result in a bounds-changed notification.
shared method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the notification names to use with the NSView class.
Notes:
Posted whenever the NSView’s bounds rectangle changes independently of the frame rectangle, if the NSView is configured using setPostsBoundsChangedNotifications to post such notifications.
The notification object is the NSView object whose bounds rectangle has changed. This notification does not contain a userInfo dictionary.
The following methods can result in notification posting
- setBounds
- setBoundsOrigin
- setBoundsRotation
- setBoundsSize
- translateOriginToPoint
- scaleUnitSquareToSize
- rotateByAngle
Note that the bounds rectangle resizes automatically to track the frame rectangle. Because the primary change is that of the frame rectangle, however, setFrame and setFrameSize don’t result in a bounds-changed notification.
NSViewMBS.NSViewDidUpdateTrackingAreasNotification as string
shared method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the notification names to use with the NSView class.
Notes:
Posted whenever an NSView object recalculates its tracking areas. It is sent after the view receives updateTrackingAreas.
Available in Mac OS X v10.5 and later.
shared method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the notification names to use with the NSView class.
Notes:
Posted whenever an NSView object recalculates its tracking areas. It is sent after the view receives updateTrackingAreas.
Available in Mac OS X v10.5 and later.
NSViewMBS.NSViewFocusDidChangeNotification as string
shared method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the notification names to use with the NSView class.
Notes:
Deprecated notification that was posted for an NSView object and each of its descendants (recursively) whenever the frame or bounds geometry of the view changed.
In Mac OS X v10.4 and later, this notification is no longer posted. In earlier version of Mac OS X, use NSViewBoundsDidChangeNotification and NSViewFrameDidChangeNotification instead to get the same information provided by this notification.
The notification object is the view whose geometry changed. This notification does not contain a userInfo dictionary.
Deprecated in Mac OS X v10.4 and later.
shared method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSViewMBS, Console safe, Plugin version: 10.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.
Function: One of the notification names to use with the NSView class.
Notes:
Deprecated notification that was posted for an NSView object and each of its descendants (recursively) whenever the frame or bounds geometry of the view changed.
In Mac OS X v10.4 and later, this notification is no longer posted. In earlier version of Mac OS X, use NSViewBoundsDidChangeNotification and NSViewFrameDidChangeNotification instead to get the same information provided by this notification.
The notification object is the view whose geometry changed. This notification does not contain a userInfo dictionary.
Deprecated in Mac OS X v10.4 and later.
The items on this page are in the following plugins: MBS REALbasic CocoaBase Plugin.
Links
MBS Filemaker Plugins - Pfarrgemeinde Ministranten Nickenich