Newbie ? - How to load JPEG image from file into window
Newbie ? - How to load JPEG image from file into window
- Subject: Newbie ? - How to load JPEG image from file into window
- From: Lane Schwartz <email@hidden>
- Date: Fri, 17 Aug 2001 20:23:51 -0500
- Organization: The Realm of Dowobeha
I'm a Java/C++ coder just getting my feet wet in Cocoa. I'm trying to
port my Java app (Your Dot Photos - an open source digital picture
cataloging program) to Cocoa, primarily for a speed boost. I'm
interested in trying it in both Obj-C Cocoa and Java Cocoa.
I would be grateful if anyone could point me to example code
demonstrating (to a Cocoa beginner) how to:
1) Set up a window so that it can accept an imported image.
I know from reading through this list's archives that this probably
involves NSImage &/or NSImageView. But how does one prepare a window to
accept this?
2) Open a file-selection window, and select a file via this interface
3) Read in this selected file (specifically a JPEG, more specifically an
EXIF)
4) Display this file in the window
Thank you in advance for your help to a newbie. Any info would be
appreciated. Code samples especially appreciated.