Re: Cant Load an Image into a CALayer

2008-12-05 Thread Gustavo Pizano
Aha ok.. Thanks I think I did it now. Gus On 3.12.2008, at 16:08, Benjamin Stiglitz wrote: NSImage * image = [[NSImage alloc] initByReferencingFile:@"Destroyer.png"]; Your conditional statement is failing because the image can't be located; you need to pass the path to your image relat

Re: Cant Load an Image into a CALayer Solved

2008-12-03 Thread Gustavo Pizano
I just wanted to say tha tI solved the problem, I realize where I was making my mistake, I guess I was trying to put the image in the init method, and somehow it wasn't working (my guess is that in the init the view wasn't initialized yet), so I put it in the awakeFromNib method and it did

Re: Cant Load an Image into a CALayer

2008-12-03 Thread Benjamin Stiglitz
NSImage * image = [[NSImage alloc] initByReferencingFile:@"Destroyer.png"]; Your conditional statement is failing because the image can't be located; you need to pass the path to your image relative to the current working directory; see the documentation:

Cant Load an Image into a CALayer

2008-12-03 Thread Gustavo Pizano
Hello, me again, I have another problem I hadn't been able to solve, Im trying to load an image which is in my bundle, and then put it in a sublayer of the Custom View of my app. I have been readign the previous posts and nothing seem to be working for me, I dunno what Im doing wrong, he