PageRenderTime 21ms CodeModel.GetById 8ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/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
19#import <Foundation/Foundation.h>
20#import "GTMDefines.h"
21
22@interface NSAppleEventDescriptor (GTMAppleEventDescriptorHandlerAdditions)
23+ (id)gtm_descriptorWithPositionalHandler:(NSString*)handler 
24                          parametersArray:(NSArray*)params;
25+ (id)gtm_descriptorWithPositionalHandler:(NSString*)handler 
26                     parametersDescriptor:(NSAppleEventDescriptor*)params;
27+ (id)gtm_descriptorWithLabeledHandler:(NSString*)handler
28                                labels:(AEKeyword*)labels
29                            parameters:(id*)params
30                                 count:(NSUInteger)count;
31
32- (id)gtm_initWithPositionalHandler:(NSString*)handler 
33                    parametersArray:(NSArray*)params 
34    NS_RETURNS_RETAINED NS_CONSUMES_SELF;
35
36- (id)gtm_initWithPositionalHandler:(NSString*)handler 
37               parametersDescriptor:(NSAppleEventDescriptor*)params
38    NS_RETURNS_RETAINED NS_CONSUMES_SELF;
39
40- (id)gtm_initWithLabeledHandler:(NSString*)handler 
41                          labels:(AEKeyword*)labels
42                      parameters:(id*)params
43                           count:(NSUInteger)count
44    NS_RETURNS_RETAINED NS_CONSUMES_SELF;
45@end