/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. #import <Foundation/Foundation.h>
  19. #import <AppKit/NSNibDeclarations.h>
  20. // This class allows you to create dynamically sized arrays of objects in your
  21. // nib. This saves you from adding a random "large" number of outlets on an
  22. // object to accommodate a variable number of connections. If you need <= 5
  23. // objects you only need to create one of these in your nib. If you need > 5
  24. // objects you can connect any of the outlets in a given GTMIBArray to another
  25. // instance of GTMIBArray and we will recurse through it to create the final
  26. // array.
  27. @interface GTMIBArray : NSArray {
  28. @protected
  29. IBOutlet id object1_;
  30. IBOutlet id object2_;
  31. IBOutlet id object3_;
  32. IBOutlet id object4_;
  33. IBOutlet id object5_;
  34. NSArray *realArray_;
  35. }
  36. @end