MonobjcMonobjc Documented Class Library
SetSelectedRangesAffinityStillSelecting Method (ranges, affinity, stillSelectingFlag)
NamespacesMonobjc.AppKitNSTextViewSetSelectedRangesAffinityStillSelecting(NSArray, NSSelectionAffinity, Boolean)

Sets the selection to the characters in an array of ranges in response to user action.

Original signature is '- (void)setSelectedRanges:(NSArray *)ranges affinity:(NSSelectionAffinity)affinity stillSelecting:(BOOL)stillSelectingFlag'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetSelectedRangesAffinityStillSelecting(
	NSArray ranges,
	NSSelectionAffinity affinity,
	bool stillSelectingFlag
)
Public Overridable Sub SetSelectedRangesAffinityStillSelecting ( _
	ranges As NSArray, _
	affinity As NSSelectionAffinity, _
	stillSelectingFlag As Boolean _
)
public:
virtual void SetSelectedRangesAffinityStillSelecting(
	NSArray^ ranges, 
	NSSelectionAffinity affinity, 
	bool stillSelectingFlag
)
Parameters
ranges (NSArray)
A non-nil, non-empty array of objects responding to the NSValue rangeValue method. The ranges in the ranges array must begin and end on glyph boundaries and not split base glyphs and their nonspacing marks.
affinity (NSSelectionAffinity)
The selection affinity for the selection. See selectionAffinity for more information about how affinities work.
stillSelectingFlag (Boolean)
YES to behave appropriately for a continuing selection where the user is still dragging the mouse, NO otherwise. If YES, the receiver doesn’t send notifications or remove the marking from its marked text. If NO, the receiver posts an NSTextViewDidChangeSelectionNotification to the default notification center and removes the marking from marked text if the new selection is greater than the marked region.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)