Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

NSSet Program in objectice-c

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.22 sec, absolute running time: 0.14 sec, cpu time: 0.02 sec, memory peak: 8 Mb, absolute service time: 0,37 sec 
edit mode |  history  | discussion
Error(s):
2017-01-12 07:09:15.397 a.out[4089] autorelease called without pool for object (0xeba9b8) of class GSSet in thread <NSThread: 0xeb7a38>
2017-01-12 07:09:15.397 a.out[4089] autorelease called without pool for object (0xfff1e8) of class GSSet in thread <NSThread: 0xeb7a38>
2017-01-12 07:09:15.397 a.out[4089] 

1........................Creating Sets using NSSet class and initialise object with setWithObjects........................
2017-01-12 07:09:15.398 a.out[4089] (Kartik, Keval, Ashish)
2017-01-12 07:09:15.398 a.out[4089] 

2........................Enumerating Sets using for loop with id.........................
2017-01-12 07:09:15.398 a.out[4089] Kartik
2017-01-12 07:09:15.398 a.out[4089] Keval
2017-01-12 07:09:15.398 a.out[4089] Ashish
2017-01-12 07:09:15.398 a.out[4089] 

3........................Comparing Sets with two NSSet objects.........................
2017-01-12 07:09:15.398 a.out[4089] Both Set are diffrent
2017-01-12 07:09:15.398 a.out[4089] 

4........................NSSet object has Membership Checking using containsObject method.........................
2017-01-12 07:09:15.398 a.out[4089] Kaushal Is not in Set
2017-01-12 07:09:15.398 a.out[4089] 

5........................Filtering Sets which has first charecter is starting from 'K'........................
2017-01-12 07:09:15.398 a.out[4089] Ashish
2017-01-12 07:09:15.398 a.out[4089] 

6........................NSSet object Combining Sets using setByAddingObjectsFromSet.........................
2017-01-12 07:09:15.398 a.out[4089] autorelease called without pool for object (0x1003658) of class GSSetEnumerator in thread <NSThread: 0xeb7a38>
2017-01-12 07:09:15.398 a.out[4089] autorelease called without pool for object (0x10036e8) of class GSSetEnumerator in thread <NSThread: 0xeb7a38>
2017-01-12 07:09:15.398 a.out[4089] autorelease called without pool for object (0x1003118) of class GSSetEnumerator in thread <NSThread: 0xeb7a38>
2017-01-12 07:09:15.398 a.out[4089] autorelease called without pool for object (0x1001608) of class GSSet in thread <NSThread: 0xeb7a38>
2017-01-12 07:09:15.398 a.out[4089] (Kartik, Keval, Ashish, Kamal, Umang, Anish)