Class NSMetadataQuery

  • All Implemented Interfaces:
    NSObject

    public class NSMetadataQuery
    extends NSObject
    API-Since: 5.0
    • Constructor Detail

      • NSMetadataQuery

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSMetadataQuery 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()
      • 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()
      • instanceMethodSignatureForSelector

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

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • 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)
      • 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()
      • version_static

        public static long version_static()
      • disableUpdates

        public void disableUpdates()
        these nest
      • enableUpdates

        public void enableUpdates()
      • groupedResults

        @NotNull
        public @NotNull NSArray<? extends NSMetadataQueryResultGroup> groupedResults()
        array of NSMetadataQueryResultGroups, for first grouping attribute
      • groupingAttributes

        @Nullable
        public @Nullable NSArray<java.lang.String> groupingAttributes()
      • indexOfResult

        public long indexOfResult​(@NotNull
                                  @NotNull java.lang.Object result)
      • isGathering

        public boolean isGathering()
      • isStarted

        public boolean isStarted()
      • isStopped

        public boolean isStopped()
      • notificationBatchingInterval

        public double notificationBatchingInterval()
      • operationQueue

        @Nullable
        public @Nullable NSOperationQueue operationQueue()
        items can be a mixture of NSMetadataItem, NSURL objects (file URLs only) and/or string paths; the getter returns the same mixture as was set API-Since: 7.0
      • predicate

        @Nullable
        public @Nullable NSPredicate predicate()
      • resultAtIndex

        @NotNull
        public @NotNull java.lang.Object resultAtIndex​(long idx)
      • resultCount

        public long resultCount()
        Results are NSMetadataItems, or whatever the delegate replaces that with
      • results

        @NotNull
        public @NotNull NSArray<?> results()
        this is for K-V Bindings, and causes side-effects on the query
      • searchItems

        @Nullable
        public @Nullable NSArray<?> searchItems()
        scopes is an NSArray of NSURL objects (file URLs only) and/or string paths and/or the special string constants below, which specifies the locations to which the search is limited; an empty array means no limits, which is the default state. API-Since: 7.0
      • searchScopes

        @NotNull
        public @NotNull NSArray<?> searchScopes()
      • setGroupingAttributes

        public void setGroupingAttributes​(@Nullable
                                          @Nullable NSArray<java.lang.String> value)
      • setNotificationBatchingInterval

        public void setNotificationBatchingInterval​(double value)
      • setOperationQueue

        public void setOperationQueue​(@Nullable
                                      @Nullable NSOperationQueue value)
        items can be a mixture of NSMetadataItem, NSURL objects (file URLs only) and/or string paths; the getter returns the same mixture as was set API-Since: 7.0
      • setPredicate

        public void setPredicate​(@Nullable
                                 @Nullable NSPredicate value)
      • setSearchItems

        public void setSearchItems​(@Nullable
                                   @Nullable NSArray<?> value)
        scopes is an NSArray of NSURL objects (file URLs only) and/or string paths and/or the special string constants below, which specifies the locations to which the search is limited; an empty array means no limits, which is the default state. API-Since: 7.0
      • setSearchScopes

        public void setSearchScopes​(@NotNull
                                    @NotNull NSArray<?> value)
      • setSortDescriptors

        public void setSortDescriptors​(@NotNull
                                       @NotNull NSArray<? extends NSSortDescriptor> value)
      • setValueListAttributes

        public void setValueListAttributes​(@NotNull
                                           @NotNull NSArray<java.lang.String> value)
      • startQuery

        public boolean startQuery()
        optional operation queue for notifications and delegate method calls
      • stopQuery

        public void stopQuery()
      • valueListAttributes

        @NotNull
        public @NotNull NSArray<java.lang.String> valueListAttributes()
      • valueOfAttributeForResultAtIndex

        @Nullable
        public @Nullable java.lang.Object valueOfAttributeForResultAtIndex​(@NotNull
                                                                           @NotNull java.lang.String attrName,
                                                                           long idx)
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.