• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie ? - How to load JPEG image from file into window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Newbie ? - How to load JPEG image from file into window (From: Lane Schwartz <email@hidden>)

  • Prev by Date: Re: Speech Recognition in Cocoa and Carbon?
  • Next by Date: FSRef-like primitive?
  • Previous by thread: Newbie ? - How to load JPEG image from file into window
  • Next by thread: Speech Recognition in Cocoa and Carbon?
  • Index(es):
    • Date
    • Thread