The iOS framework that grows only as fast as its documentation
NINonRetainingCollections.m
1 //
2 // Copyright 2011-2014 NimbusKit
3 //
4 // Forked from Three20 June 9, 2011 - Copyright 2009-2011 Facebook
5 //
6 // Licensed under the Apache License, Version 2.0 (the "License");
7 // you may not use this file except in compliance with the License.
8 // You may obtain a copy 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,
14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 // See the License for the specific language governing permissions and
16 // limitations under the License.
17 //
18 
19 #import "NINonRetainingCollections.h"
20 
21 #if !defined(__has_feature) || !__has_feature(objc_arc)
22 #error "Nimbus requires ARC support."
23 #endif
24 
25 NSMutableArray* NICreateNonRetainingMutableArray(void) {
26  return (__bridge_transfer NSMutableArray *)CFArrayCreateMutable(nil, 0, nil);
27 }
28 
29 NSMutableDictionary* NICreateNonRetainingMutableDictionary(void) {
30  return (__bridge_transfer NSMutableDictionary *)CFDictionaryCreateMutable(nil, 0, nil, nil);
31 }
32 
33 NSMutableSet* NICreateNonRetainingMutableSet(void) {
34  return (__bridge_transfer NSMutableSet *)CFSetCreateMutable(nil, 0, nil);
35 }
36 
NSMutableSet * NICreateNonRetainingMutableSet(void)
Creates a mutable set which does not retain references to the values it contains. ...
NSMutableDictionary * NICreateNonRetainingMutableDictionary(void)
Creates a mutable dictionary which does not retain references to the values it contains.
NSMutableArray * NICreateNonRetainingMutableArray(void)
Creates a mutable array which does not retain references to the objects it contains.