Platforms to show: All Mac Windows Linux Cross-Platform

MKPinAnnotationViewMBS class

Super class: MKAnnotationViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class MapKit MBS MacFrameworks Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The MKPinAnnotationView class provides a concrete annotation view that displays a pin icon like the ones found in the Maps application.

Using this class, you can configure the type of pin to drop and whether you want the pin to be animated into place.
Subclass of the MKAnnotationViewMBS class.

Color constants

Constant Value Description
ColorBlue 2 The head of the pin is blue. Purple pins indicate user-specified points on the map.
ColorGreen 1 The head of the pin is green. Green pins indicate starting points on the map.
ColorRed 0 The head of the pin is red. Red pins indicate destination points on the map.

Super class MKAnnotationViewMBS

Collision Modes

Constant Value Description
CollisionModeCircle 1
CollisionModeRectangle 0

Display Priorities

Constant Value Description
DisplayPriorityDefaultHigh 750 A constant indicating that the item's display priority is high.
DisplayPriorityDefaultLow 250 A constant indicating that the item's display priority is low.
DisplayPriorityRequired 1000 A constant indicating that the item is required.

Drag States

Constant Value Description
DragStateCanceling 3 Drag was cancelled.
DragStateDragging 2 Drag is happening.
DragStateEnding 4 Drag is ending.
DragStateNone 0 No dragging.
DragStateStarting 1 Drag is starting.

Super class NSViewMBS

Constants

Constant Value Description
NSBezelBorder 2 One of the constants to specify the type of a view's border. A concave border that makes the view look sunken.
NSFocusRingTypeDefault 0 One of the constants for the focusringtype property. The default focus ring type for NSView or NSCell.
NSFocusRingTypeExterior 2 One of the constants for the focusringtype property. The standard Aqua focus ring.
NSFocusRingTypeNone 1 One of the constants for the focusringtype property. No focus ring. If you set the focus ring type to this value, NSView and NSCell will not draw any focus ring.
NSGrooveBorder 3 One of the constants to specify the type of a view's border. A thin border that looks etched around the image.
NSLineBorder 1 One of the constants to specify the type of a view's border. A black line border around the view.
NSNoBorder 0 One of the constants to specify the type of a view's border. No border.
NSViewHeightSizable 16 One of the constants for the autoresizingMask property. The receiver's height is flexible.
NSViewLayerContentsRedrawBeforeViewResize 3 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawDuringViewResize 2 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawNever 0 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawOnSetNeedsDisplay 1 One of the view layer content redraw policy constants.
NSViewMaxXMargin 4 One of the constants for the autoresizingMask property. The right margin between the receiver and its superview is flexible.
NSViewMaxYMargin 32 One of the constants for the autoresizingMask property. The top margin between the receiver and its superview is flexible.
NSViewMinXMargin 1 One of the constants for the autoresizingMask property. The left margin between the receiver and its superview is flexible.
NSViewMinYMargin 8 One of the constants for the autoresizingMask property. The bottom margin between the receiver and its superview is flexible.
NSViewNotSizable 0 One of the constants for the autoresizingMask property. The receiver cannot be resized.
NSViewWidthSizable 2 One of the constants for the autoresizingMask property. The receiver's width is flexible.

Window Order Constants

Constant Value Description
NSWindowAbove 1 Moves the window above the indicated window.
NSWindowBelow -1 Moves the window below the indicated window.
NSWindowOut 0 Moves the window off the screen.

Super class NSResponderMBS

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes


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


MKOverlayRendererMBS   -   MKPlacemarkMBS


The biggest plugin in space...