• 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: displaying a NSImage within NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: displaying a NSImage within NSImageView


  • Subject: Re: displaying a NSImage within NSImageView
  • From: Shawn Erickson <email@hidden>
  • Date: Tue, 5 Apr 2005 09:23:56 -0700


On Apr 5, 2005, at 9:06 AM, Daniel O'Sullivan wrote:

NSImage *theImage = [jtPPMToImageRep imageRepFromFile: aFormattedString];

What is "jtPPMToImageRep" here?

What is the implementation for imageRepFromFile:?

[view setImage:theImage];

Did you place a break point on this line to see if "theImage" is non-nil and looks to be a valid NSImage instance?

Or is there another method that can display the image, either way i would really appreciate some advice on how to get an image to appear! Please!!! Perhaps there's some online tutorials on how to do this that somebody knows of, unfortunately i've been unable to locate any!

Many many ways exist to do what you are asking but which one to use depends on exactly what you want in the end. Anyway review Apple's example code covering this area <http://developer.apple.com/samplecode/Cocoa/idxGraphicsImaging-date.html> (many exist on your system as well under /Developer/Examples).

Also I suggest you review the following if you want to understand the recommended naming conventions, etc. in Cocoa <http://developer.apple.com/documentation/Cocoa/Conceptual/CodingGuidelines/index.html>.

cheers for any help and taking the time to read this - my university degree currently hangs on this!!!!!

If your degree really does depend on this then it is best to dig and find the answer yourself given the countless resources that exist. This is relatively trivial to do in Cocoa and generally well documented, review NSImage, NSView class docs and linked topic documentation from the class docs. Also search the archives of this list (you can find a way to do that from lists.apple.com).

-Shawn
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >displaying a NSImage within NSImageView (From: "Daniel O'Sullivan" <email@hidden>)

  • Prev by Date: Re: how input method editors work
  • Next by Date: Signal 10 and 11, keep popping up when i try and compare 2 NSStrings?
  • Previous by thread: displaying a NSImage within NSImageView
  • Next by thread: MEETING: Chicago - Tuesday, April 5th
  • Index(es):
    • Date
    • Thread