On or about 8/15/10 12:40 PM, thus spake "Kyle Sluder"
:
> Would you have preferred
I wouldn't have preferred anything. I think the whole thing is brilliant. I
am merely making a pedagogical suggestion about how the documentation might
be improved. The documentation as it stands seems to invite t
On Sun, Aug 15, 2010 at 12:08 PM, Matt Neuburg wrote:
> My point with regard to this warning is merely that I was never *in* the
> UIView class documentation. The warning needs to be, or be repeated, in the
> CALayer class documentation.
But you were mucking with a UIView's layer tree. I would as
On or about 8/13/10 9:53 AM, thus spake "David Duncan"
:
> -[UIView layer] has this to say: "Warning: Since the view is the layer¹s
> delegate, you should never set the view as a delegate of another CALayer
> object. Additionally, you should never change the delegate of this layer."
My point with
On Aug 12, 2010, at 5:53 PM, Matt Neuburg wrote:
> Where are the warnings?
-[UIView layer] has this to say: "Warning: Since the view is the layer’s
delegate, you should never set the view as a delegate of another CALayer
object. Additionally, you should never change the delegate of this layer."
Very good answers, many thanks! What great info.
I suspected something like this, of course. But then I'd like to complain
about the documentation; I shouldn't have had to discover this by stubbing
my toe against it (or, getting tingly water, as Glenn puts it).
Where are the warnings? We're worki
On Aug 12, 2010, at 6:28 PM, Matt Neuburg wrote:
> Here's my code, simplified (and tested in this simple form) in order to
> demonstrate a mystery:
>
> - (void) illuminate: (NSArray*) arr {
>UIView* v = [[UIView alloc] initWithFrame:self.view.bounds];
>NSLog(@"%@", v);
>CALayer* lay
UIView does not maintain a tree. The view tree is really a CALayer tree, where
some (or all) of the layers belong to UIView instances. This tie is made by the
fact that UIView is the layer's delegate. Thus self.subviews is really
self.layer.sublayers for each layer whose delegate is a UIView. Lo
Here's my code, simplified (and tested in this simple form) in order to
demonstrate a mystery:
- (void) illuminate: (NSArray*) arr {
UIView* v = [[UIView alloc] initWithFrame:self.view.bounds];
NSLog(@"%@", v);
CALayer* lay = [v layer];
v.tag = 111;
[self.view addSubview:v];