Lines Matching refs:sublayers
129 nullValue, @"sublayers",
270 // Short circuiting here not only avoids the allocation of sublayers, but avoids <rdar://problem/7390716> (see below)
277 NSMutableArray* sublayers = [[NSMutableArray alloc] init];
279 [sublayers addObject:list[i]->m_layer.get()];
281 [m_layer.get() setSublayers:sublayers];
282 [sublayers release];
288 // Workaround for <rdar://problem/7390716>: -[CALayer setSublayers:] crashes if sublayers is an empty array, or nil, under GC.
291 while ([[m_layer.get() sublayers] count])
292 [[[m_layer.get() sublayers] objectAtIndex:0] removeFromSuperlayer];
321 return [[m_layer.get() sublayers] count];
326 // Workaround for <rdar://problem/7390716>: -[CALayer setSublayers:] crashes if sublayers is an empty array, or nil, under GC.
327 NSArray* sublayers = [source->m_layer.get() sublayers];
329 if (objc_collectingEnabled() && ![sublayers count]) {
331 while ([[m_layer.get() sublayers] count])
332 [[[m_layer.get() sublayers] objectAtIndex:0] removeFromSuperlayer];
338 [m_layer.get() setSublayers:sublayers];