CATextLayer question

2008-06-05 Thread Davide Scheriani
I was playing with my NSView and CATextLayer. I placed this code: -(void)mouseDown:(NSEvent *)theEvent { NSPoint p = [theEvent locationInWindow]; CATextLayer *textLayer=[CATextLayer layer]; textLayer.string=[arr objectAtIndex: (random() % [arr count])];

Re: CATextLayer question

2008-06-05 Thread Brian Christensen
On Jun 5, 2008, at 9:04 , Davide Scheriani wrote: I was playing with my NSView and CATextLayer. I placed this code: -(void)mouseDown:(NSEvent *)theEvent { // [...snip...] [rootLayer addSublayer:textLayer]; } what ive noticed is when I click,the text appear with a fadein. Any

Re: CATextLayer question

2008-06-05 Thread Davide Scheriani
nooo I dont believe it! :) I come from Flash and Core Animation is like Fuse Framework of Moses. Is a way to have some sort of collision method of one or more layers? On Jun 5, 2008, at 9:04 , Davide Scheriani wrote: I was playing with my NSView and CATextLayer. I placed this code:

Re: CATextLayer question

2008-06-05 Thread Brian Christensen
On Jun 5, 2008, at 1:44 , Davide Scheriani wrote: nooo I dont believe it! :) I come from Flash and Core Animation is like Fuse Framework of Moses. Is a way to have some sort of collision method of one or more layers? I'm not quite sure what you're trying to say or accomplish, but if you