Revision 8e8eeb73ab338fc6a6e2b6af9da3dc6f09cc26d1 authored by Brad King on 06 February 2017, 15:29:35 UTC, committed by CMake Topic Stage on 06 February 2017, 15:29:35 UTC
a2a73935 FindMPI: Remove leading spaces from flags
93f29be2 FindMPI: Reset MPI_INCLUDE_PATH_WORK before use

2 parent s a00cca9 + a2a7393
Raw File
objc++.mm
#import <Cocoa/Cocoa.h>
#import <iostream>
using namespace std;

int main()
{
  NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

  NSMutableSet *mySet = [NSMutableSet set];
  cout<<"Adding values to the set."<<endl;
  [mySet addObject:[NSNumber numberWithInt:356]];
  [mySet addObject:[NSNumber numberWithInt:550]];
  [mySet addObject:[NSNumber numberWithInt:914]];

  cout<<"The set contains "<<[mySet count]<<" objects."<<endl;
  if ([mySet containsObject:[NSNumber numberWithInt:911]])
    cout<<"It's there!"<<endl;
  else
    cout<<"It's not there."<<endl;

  [pool release];
  return 0;
}
back to top