/core/externals/google-toolbox-for-mac/Foundation/GTMNSAppleEventDescriptor+Handler.h

http://macfuse.googlecode.com/ · C Header · 45 lines · 23 code · 5 blank · 17 comment · 0 complexity · 86f2df72cf831ed01e3a1f1c74d88e65 MD5 · raw file

  1. //
  2. // GTMNSAppleEventDescriptor+Handler.h
  3. //
  4. // Copyright 2008 Google Inc.
  5. //
  6. // Licensed under the Apache License, Version 2.0 (the "License"); you may not
  7. // use this file except in compliance with the License. You may obtain a copy
  8. // of the License at
  9. //
  10. // http://www.apache.org/licenses/LICENSE-2.0
  11. //
  12. // Unless required by applicable law or agreed to in writing, software
  13. // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  14. // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  15. // License for the specific language governing permissions and limitations under
  16. // the License.
  17. //
  18. #import <Foundation/Foundation.h>
  19. #import "GTMDefines.h"
  20. @interface NSAppleEventDescriptor (GTMAppleEventDescriptorHandlerAdditions)
  21. + (id)gtm_descriptorWithPositionalHandler:(NSString*)handler
  22. parametersArray:(NSArray*)params;
  23. + (id)gtm_descriptorWithPositionalHandler:(NSString*)handler
  24. parametersDescriptor:(NSAppleEventDescriptor*)params;
  25. + (id)gtm_descriptorWithLabeledHandler:(NSString*)handler
  26. labels:(AEKeyword*)labels
  27. parameters:(id*)params
  28. count:(NSUInteger)count;
  29. - (id)gtm_initWithPositionalHandler:(NSString*)handler
  30. parametersArray:(NSArray*)params
  31. NS_RETURNS_RETAINED NS_CONSUMES_SELF;
  32. - (id)gtm_initWithPositionalHandler:(NSString*)handler
  33. parametersDescriptor:(NSAppleEventDescriptor*)params
  34. NS_RETURNS_RETAINED NS_CONSUMES_SELF;
  35. - (id)gtm_initWithLabeledHandler:(NSString*)handler
  36. labels:(AEKeyword*)labels
  37. parameters:(id*)params
  38. count:(NSUInteger)count
  39. NS_RETURNS_RETAINED NS_CONSUMES_SELF;
  40. @end