Package apple.uikit

Class NSTextRange

  • All Implemented Interfaces:
    NSObject

    public class NSTextRange
    extends NSObject
    NSTextRange represents a contiguous range between two locations inside document contents. It consists of the starting location and terminating location. They are the two basic properties, location and endLocation, respectively. The terminating location, endLocation, is directly following the last location in the range. So, a location is contained in a range if (range.location <= location) && (location < range.endLocation). API-Since: 15.0
    • Constructor Detail

      • NSTextRange

        protected NSTextRange​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSTextRange allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • containsLocation

        public boolean containsLocation​(@NotNull
                                        @NotNull NSTextLocation location)
      • containsRange

        public boolean containsRange​(@NotNull
                                     @NotNull NSTextRange textRange)
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • initWithLocationEndLocation

        public NSTextRange initWithLocationEndLocation​(@NotNull
                                                       @NotNull NSTextLocation location,
                                                       @Nullable
                                                       @Nullable NSTextLocation endLocation)
        Returns an empty range when endLocation=nil
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • intersectsWithTextRange

        public boolean intersectsWithTextRange​(@NotNull
                                               @NotNull NSTextRange textRange)
      • isEmpty

        public boolean isEmpty()
        An empty range when location == endLocation
      • isEqualToTextRange

        public boolean isEqualToTextRange​(@NotNull
                                          @NotNull NSTextRange textRange)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • location

        @NotNull
        public @NotNull NSTextLocation location()
        Represented with the inclusive location and the exclusive endLocation
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • textRangeByFormingUnionWithTextRange

        @NotNull
        public @NotNull NSTextRange textRangeByFormingUnionWithTextRange​(@NotNull
                                                                         @NotNull NSTextRange textRange)
      • textRangeByIntersectingWithTextRange

        @Nullable
        public @Nullable NSTextRange textRangeByIntersectingWithTextRange​(@NotNull
                                                                          @NotNull NSTextRange textRange)
        Returns the intersection with textRange. Returns nil when not intersecting.
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.