2 questions


#1
  1. where is my error ?
    If I respect the book example, everything is right, but if I add a line in ScatteredAppDelegate.h about textContainer like
{
    IBOutlet NSView *view;
    CATextLayer *textLayer;
    CALayer *textContainer;
}

And now I suppress the “CALayer *” in front of textContainer in applicationDidFinishLaunching,

I get an error on every line where textContainer is used :

Have you any explanation ?
2) Is there any typeOf ?
If I have a variable, suppose “layer”. How I can know if it’s a CALayer, a CATextLayer, … or any other kind of object.
I’m sure we have seen that, but I can’t remember.
Can you say me where ?
Thank you.