PageRenderTime 20ms CodeModel.GetById 12ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/google-toolbox-for-mac/AppKit/GTMIBArray.h

http://macfuse.googlecode.com/
C++ Header | 39 lines | 12 code | 3 blank | 24 comment | 0 complexity | 6a2721ddb5d9481b60ae3675b2e3414b MD5 | raw file
 1//
 2//  GTMIBArray.h
 3//
 4//  Copyright 2009 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 <AppKit/NSNibDeclarations.h>
21
22// This class allows you to create dynamically sized arrays of objects in your
23// nib.  This saves you from adding a random "large" number of outlets on an
24// object to accommodate a variable number of connections. If you need <= 5
25// objects you only need to create one of these in your nib. If you need > 5
26// objects you can connect any of the outlets in a given GTMIBArray to another
27// instance of GTMIBArray and we will recurse through it to create the final
28// array.
29@interface GTMIBArray : NSArray {
30 @protected
31  IBOutlet id object1_;
32  IBOutlet id object2_;
33  IBOutlet id object3_;
34  IBOutlet id object4_;
35  IBOutlet id object5_;
36  NSArray *realArray_;
37}
38
39@end