PDA

View Full Version : Image as a background for an interface




Khanjan
Jul 13, 2009, 01:02 PM
Hey all,

I have made this interface in Objective C , which has two sections - Input Section and Output Section. The Input section allows user to see/update a configuration file, takes user input and runs a script on the input file. The Output section displays the list of output files and shows each file when the user clicks on it.

So, I have my Input section as one view and Output Section as another view, separated by a vertical line. Both the views, rest in one main view of the window.

Now, my problem is, I want to make this interface colorful, like put some image in the background.

I tried to write one more class ( apart from my main controller class) for the main, used some code given at

http://cocoadevcentral.com/d/intro_to_quartz_two/

to display an image in the view, but its not working.

Can anyone help me ? How do the two classes work in conjuction. The functionality still works, but no image is displayed. I try to draw a rectangle and draw a image in the Main View. Where am I going wrong?

Thanks for all help,

Cheers,



Khanjan
Jul 13, 2009, 01:56 PM
Sorry guys,

My mistake... I did not configure the view class to work with the My View... Got it working !!

Thanks anyways :) !!

Cheers,