/packages/cocoaint/src/foundation/NSCompoundPredicate.inc

https://github.com/slibre/freepascal · Pascal · 71 lines · 23 code · 17 blank · 31 comment · 0 complexity · 1ece44a4da8d0dbbb8eb08be4a8df81f MD5 · raw file

  1. { Parsed from Foundation.framework NSCompoundPredicate.h }
  2. {$ifdef TYPES}
  3. {$ifndef NSCOMPOUNDPREDICATE_PAS_T}
  4. {$define NSCOMPOUNDPREDICATE_PAS_T}
  5. { Constants }
  6. const
  7. NSNotPredicateType = 0;
  8. NSAndPredicateType = 1;
  9. NSOrPredicateType = 2;
  10. { Types }
  11. type
  12. NSCompoundPredicateType = NSUInteger;
  13. NSCompoundPredicateTypePtr = ^NSCompoundPredicateType;
  14. {$endif}
  15. {$endif}
  16. {$ifdef RECORDS}
  17. {$ifndef NSCOMPOUNDPREDICATE_PAS_R}
  18. {$define NSCOMPOUNDPREDICATE_PAS_R}
  19. {$endif}
  20. {$endif}
  21. {$ifdef FUNCTIONS}
  22. {$ifndef NSCOMPOUNDPREDICATE_PAS_F}
  23. {$define NSCOMPOUNDPREDICATE_PAS_F}
  24. {$endif}
  25. {$endif}
  26. {$ifdef EXTERNAL_SYMBOLS}
  27. {$ifndef NSCOMPOUNDPREDICATE_PAS_S}
  28. {$define NSCOMPOUNDPREDICATE_PAS_S}
  29. {$endif}
  30. {$endif}
  31. {$ifdef FORWARD}
  32. NSCompoundPredicate = objcclass;
  33. NSCompoundPredicatePointer = ^NSCompoundPredicate;
  34. NSCompoundPredicatePtr = NSCompoundPredicatePointer;
  35. {$endif}
  36. {$ifdef CLASSES}
  37. {$ifndef NSCOMPOUNDPREDICATE_PAS_C}
  38. {$define NSCOMPOUNDPREDICATE_PAS_C}
  39. { NSCompoundPredicate }
  40. NSCompoundPredicate = objcclass external (NSPredicate)
  41. private
  42. _reserved2: Pointer;
  43. _type: NSUInteger;
  44. _subpredicates: NSArray;
  45. public
  46. function initWithType_subpredicates(type_: NSCompoundPredicateType; subpredicates_: NSArray): id; message 'initWithType:subpredicates:';
  47. function compoundPredicateType: NSCompoundPredicateType; message 'compoundPredicateType';
  48. function subpredicates: NSArray; message 'subpredicates';
  49. class function andPredicateWithSubpredicates(subpredicates_: NSArray): NSPredicate; message 'andPredicateWithSubpredicates:';
  50. class function orPredicateWithSubpredicates(subpredicates_: NSArray): NSPredicate; message 'orPredicateWithSubpredicates:';
  51. class function notPredicateWithSubpredicate(predicate: NSPredicate): NSPredicate; message 'notPredicateWithSubpredicate:';
  52. end;
  53. {$endif}
  54. {$endif}