MBS Xojo Developer Conference and Training
Join us from 11th to 14th September 2013 in Koblenz.
Join us from 11th to 14th September 2013 in Koblenz.
Platforms to show: All Mac Windows Linux Cross-Platform
NSViewMBS.acceptsTouchEvents as boolean
property, Cocoa, MBS Real Studio 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 computed property)
property, Cocoa, MBS Real Studio 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 computed property)
NSViewMBS.addSubview(subview as NSViewMBS)
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 8.0, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Adds a view to the subviews so it's displayed above its siblings.
Example:
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 8.0, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Adds a view to the subviews so it's displayed above its siblings.
Example:
// create a button
dim n as new NSButtonMBS(100, 100, 50, 24)
n.bezelStyle = n.NSRoundedBezelStyle
n.Title = "Test"
// add directly to window's content view
window1.NSWindowMBS.contentView.addSubview n
See also:
NSViewMBS.addSubview(subview as NSViewMBS, positioned as integer, relativeToView as NSViewMBS)
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 12.0, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Inserts a view among the receiver's subviews so it's displayed immediately above or below another view.
Example:
Notes:
subView: The view object to add to the receiver as a subview.
positioned: A constant specifying the position of the aView relative to otherView. Valid values are NSWindowAbove or NSWindowBelow.
relativeToView: The other view subView is to be positioned relative to. If relativeToView is nil (or isn't a subview of the receiver), subView is added above or below all of its new siblings.
This method also sets the receiver as the next responder of aView.
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 12.0, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Inserts a view among the receiver's subviews so it's displayed immediately above or below another view.
Example:
// create a button
dim n as new NSButtonMBS(100, 100, 50, 24)
n.bezelStyle = n.NSRoundedBezelStyle
n.Title = "Test"
// add directly to window's super view, below the content view
// so it is behind all RB controls
window1.NSWindowMBS.contentView.superview.addSubview n, NSWindowMBS.NSWindowBelow, window1.NSWindowMBS.contentView
subView: The view object to add to the receiver as a subview.
positioned: A constant specifying the position of the aView relative to otherView. Valid values are NSWindowAbove or NSWindowBelow.
relativeToView: The other view subView is to be positioned relative to. If relativeToView is nil (or isn't a subview of the receiver), subView is added above or below all of its new siblings.
This method also sets the receiver as the next responder of aView.
See also:
NSViewMBS.alphaValue as double
property, Cocoa, MBS Real Studio 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:
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)
property, Cocoa, MBS Real Studio 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
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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 9.6, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 9.6, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.0, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the proxy object for this view which animates.
Example:
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.0, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the proxy object for this view which animates.
Example:
NSViewMBS.autoresizesSubviews as boolean
property, Cocoa, MBS Real Studio 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 computed property)
property, Cocoa, MBS Real Studio 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 computed property)
NSViewMBS.autoresizingMask as Integer
property, Cocoa, MBS Real Studio 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.
(Read and Write computed property)
property, Cocoa, MBS Real Studio 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 = 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.beginDraggingSessionWithItems(items() as NSDraggingItemMBS, e as NSEventMBS, source as NSViewMBS) as NSDraggingSessionMBS
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 13.1, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Initiates a dragging session with a group of dragging items.
Notes:
items: The dragging items. The frame property of each NSDraggingItem must be in the view's coordinate system.
event: The mouse-down event object from which to initiate the drag operation. In particular, its mouse location is used for the offset of the icon being dragged.
source: An object that serves as the controller of the dragging operation. It must conform to the NSDraggingSource informal protocol and is typically the receiver itself or its NSWindow object.
Returns the dragging session for the drag.
A basic drag starts by calling beginDraggingSessionWithItems.
The caller can take the returned NSDraggingSession and continue to modify its properties such as slidesBackOnCancelOrFail. When the drag actually starts, the source is sent a draggingSessionWillBeginAtPoint message followed by multiple draggingSessionMovedToPoint messages as the user drags.
Once the drag is ended or cancelled, the source receives a draggingSessionEndedAtPoint:operation and the drag is complete.
Available in OS X v10.7 and later.
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 13.1, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Initiates a dragging session with a group of dragging items.
Notes:
items: The dragging items. The frame property of each NSDraggingItem must be in the view's coordinate system.
event: The mouse-down event object from which to initiate the drag operation. In particular, its mouse location is used for the offset of the icon being dragged.
source: An object that serves as the controller of the dragging operation. It must conform to the NSDraggingSource informal protocol and is typically the receiver itself or its NSWindow object.
Returns the dragging session for the drag.
A basic drag starts by calling beginDraggingSessionWithItems.
The caller can take the returned NSDraggingSession and continue to modify its properties such as slidesBackOnCancelOrFail. When the drag actually starts, the source is sent a draggingSessionWillBeginAtPoint message followed by multiple draggingSessionMovedToPoint messages as the user drags.
Once the drag is ended or cancelled, the source receives a draggingSessionEndedAtPoint:operation and the drag is complete.
Available in OS X v10.7 and later.
NSViewMBS.bounds as NSRectMBS
property, Cocoa, MBS Real Studio 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:
Notes:
The bounds rectangle may be rotated; use the boundsRotation method to check this.
(Read and Write computed property)
property, Cocoa, MBS Real Studio 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
The bounds rectangle may be rotated; use the boundsRotation method to check this.
(Read and Write computed property)
NSViewMBS.boundsRotation as double
property, Cocoa, MBS Real Studio 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 computed property)
property, Cocoa, MBS Real Studio 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 computed property)
NSViewMBS.canBecomeKeyView as boolean
method, Cocoa, MBS Real Studio 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.
method, Cocoa, MBS Real Studio 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.
NSViewMBS.canDraw as boolean
method, Cocoa, MBS Real Studio 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.
method, Cocoa, MBS Real Studio 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.
NSViewMBS.canDrawConcurrently as boolean
property, Cocoa, MBS Real Studio 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 computed property)
property, Cocoa, MBS Real Studio 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 computed property)
NSViewMBS.className as string
method, Cocoa, MBS Real Studio 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:
method, Cocoa, MBS Real Studio 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
NSViewMBS.classPath as string
method, Cocoa, MBS Real Studio 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:
Notes:
Useful for debugging to know what super classes the view has.
method, Cocoa, MBS Real Studio 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"
NSViewMBS.Constructor
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 8.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 8.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 8.6, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 8.6, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: The constructor to create a new NSView.
Notes: On success handle is set.
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 7.8, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 10.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Memoryblock
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 8.5, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns EPS data that draws the region of the receiver within a specified rectangle.
Example:
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 8.5, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Memoryblock
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 8.5, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns PDF data that draws the region of the receiver within a specified rectangle.
Example:
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 8.5, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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.drawFocusRingMask
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 12.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Draws the focus ring mask for the view.
Notes:
This method provides the shape of the focus ring mask by drawing the focus ring mask. An implementation of this method should draw in the view's interior (bounds) coordinate space, that the focus ring style has been set (it will be set it to NSFocusRingOnly to capture the focus ring itself), and that the fill and stroke colors have been set to an arbitrary fully opaque color.
Subclasses that find the default behavior insufficient should only draw the focus ring shape.
The NSView implementation of this method simply fills self.bounds.
Available in Mac OS X v10.7 and later.
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 12.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Draws the focus ring mask for the view.
Notes:
This method provides the shape of the focus ring mask by drawing the focus ring mask. An implementation of this method should draw in the view's interior (bounds) coordinate space, that the focus ring style has been set (it will be set it to NSFocusRingOnly to capture the focus ring itself), and that the fill and stroke colors have been set to an arbitrary fully opaque color.
Subclasses that find the default behavior insufficient should only draw the focus ring shape.
The NSView implementation of this method simply fills self.bounds.
Available in Mac OS X v10.7 and later.
NSViewMBS.enclosingMenuItem as variant
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 11.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the menu item containing the receiver or any of its superviews in the view hierarchy.
Notes:
Returns the menu item containing the receiver or any of its superviews in the view hierarchy, or nil if the receiver's view hierarchy is not in a menu item
Available in Mac OS X v10.5 and later.
Declared as a variant to reduce plugin dependencies.
Please assign to a NSScrollViewMBS variable.
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 11.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the menu item containing the receiver or any of its superviews in the view hierarchy.
Notes:
Returns the menu item containing the receiver or any of its superviews in the view hierarchy, or nil if the receiver's view hierarchy is not in a menu item
Available in Mac OS X v10.5 and later.
Declared as a variant to reduce plugin dependencies.
Please assign to a NSScrollViewMBS variable.
NSViewMBS.enclosingScrollView as variant
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 11.1, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the nearest ancestor NSScrollView object containing the receiver (not including the receiver itself); otherwise returns nil.
Notes:
Declared as a variant to reduce plugin dependencies.
Please assign to a NSScrollViewMBS variable.
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 11.1, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the nearest ancestor NSScrollView object containing the receiver (not including the receiver itself); otherwise returns nil.
Notes:
Declared as a variant to reduce plugin dependencies.
Please assign to a NSScrollViewMBS variable.
NSViewMBS.focusRingMaskBounds as NSRectMBS
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 12.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the focus ring mask bounds.
Notes:
Returns a rectangle containing the mask in the view's interior (bounds) coordinate space.
The mask bounds allows the focus ring's overall size and position to be determined before it is drawn.
Subclasses must override this method if they require the display of a focus ring.
The NSView implementation of this method simply returns NSZeroRect.
Note: The information provided by focusRingMaskBounds will enable Accessibility to identify selected subelements for zoom tracking, so it is important that this method provide a reasonably tight bounding box and that noteFocusRingMaskChanged is invoked as described.
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 12.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Returns the focus ring mask bounds.
Notes:
Returns a rectangle containing the mask in the view's interior (bounds) coordinate space.
The mask bounds allows the focus ring's overall size and position to be determined before it is drawn.
Subclasses must override this method if they require the display of a focus ring.
The NSView implementation of this method simply returns NSZeroRect.
Note: The information provided by focusRingMaskBounds will enable Accessibility to identify selected subelements for zoom tracking, so it is important that this method provide a reasonably tight bounding box and that noteFocusRingMaskChanged is invoked as described.
NSViewMBS.focusRingType as Integer
property, Cocoa, MBS Real Studio 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:
(Read and Write computed property)
property, Cocoa, MBS Real Studio 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:
| NSFocusRingTypeDefault | 0 |
| NSFocusRingTypeNone | 1 |
| NSFocusRingTypeExterior | 2 |
NSViewMBS.frame as NSRectMBS
property, Cocoa, MBS Real Studio 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:
Notes:
(Read and Write computed property)
property, Cocoa, MBS Real Studio 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
NSViewMBS.frameCenterRotation as double
property, Cocoa, MBS Real Studio 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 computed property)
property, Cocoa, MBS Real Studio 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 computed property)
NSViewMBS.frameRotation as double
property, Cocoa, MBS Real Studio 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 computed property)
property, Cocoa, MBS Real Studio 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 computed property)
NSViewMBS.identifier as string
property, Cocoa, MBS Real Studio 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 computed property)
property, Cocoa, MBS Real Studio 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 computed property)
NSViewMBS.isDescendantOf(view as NSViewMBS) as boolean
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 7.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 7.7, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, 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 Real Studio 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.
method, Cocoa, MBS Real Studio 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.
NSViewMBS.isHidden as Boolean
property, Cocoa, MBS Real Studio 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 computed property)
property, Cocoa, MBS Real Studio 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 computed property)
NSViewMBS.isHiddenOrHasHiddenAncestor as Boolean
method, Cocoa, MBS Real Studio 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.
method, Cocoa, MBS Real Studio 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.
NSViewMBS.isOpaque as Boolean
method, Cocoa, MBS Real Studio 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.
method, Cocoa, MBS Real Studio 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.
NSViewMBS.isRotatedFromBase as Boolean
method, Cocoa, MBS Real Studio 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.
method, Cocoa, MBS Real Studio 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.
NSViewMBS.isRotatedOrScaledFromBase as Boolean
method, Cocoa, MBS Real Studio 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.
method, Cocoa, MBS Real Studio 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.
NSViewMBS.layer as variant
property, Cocoa, MBS Real Studio 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 computed property)
property, Cocoa, MBS Real Studio 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 computed property)
NSViewMBS.makeBackingLayer as variant
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 13.1, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Creates the view’s backing layer.
Notes:
Value is a CALayerMBS object.
Available in OS X v10.6 and later.
method, Cocoa, MBS Real Studio CocoaBase Plugin (NSView), class NSViewMBS,
Plugin version: 13.1, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.
Function: Creates the view’s backing layer.
Notes:
Value is a CALayerMBS object.
Available in OS X v10.6 and later.
NSViewMBS.needsDisplay as Boolean
property, Cocoa, MBS Real Studio 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 computed property)
property, Cocoa, MBS Real Studio 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 computed property)
The items on this page are in the following plugins: MBS Real Studio CocoaBase Plugin.
Links
MBS Xojo Plugins