Re: Newbie ? - How to load JPEG image from file into window
Re: Newbie ? - How to load JPEG image from file into window
- Subject: Re: Newbie ? - How to load JPEG image from file into window
- From: Scott Anguish <email@hidden>
- Date: Sat, 18 Aug 2001 02:47:15 -0400
OK.. I'm going to major cheat here.. :-)
This requires NO code to do. :-)
Create a new empty Cocoa app in ProjectBuilder
Open the Resources->Main.nib file
Drag an NSImageView from the Palette to the window and make it as big as
the window is
hit command 1 to bring up the settings for the imageview
make it editable
run test the interface in IB. Drop a jpeg on the imageview.
GAWD I LOVE COCOA!!
Now, what's even cooler.. is that with a little more effort, you can
make an app that is multi-window, and handles all sorts of graphics
files as well.
I've put instructions for this up on Stepwise...
http://www.stepwise.com/Articles/Technical/2001-08-15.01.html