• 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: NSImage question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage question


  • Subject: Re: NSImage question
  • From: John Stiles <email@hidden>
  • Date: Thu, 18 Nov 2004 10:47:26 -0800

I think in a perfect world NSImage would use QuickTime for importing graphics. In reality, NSImage has its own code for importing graphics, so sometimes there are images where QT will work and NSImage won't, or vice versa.

Yes, this is silly duplication of code. But remember, NSImage predates QuickTime; it was originally written at NeXT for the Nextstep OS.


On Nov 18, 2004, at 9:48 AM, Mark Thomas wrote:

Thanks John,

So I guess it doesn't use Quicktime I guess there is a good reason why not,
as seen duplication ???. Converting to other image formats don't work as I
need to maintain the PC source compatibility and window programmers are too
lazy to re-write their code because something on MacOS doesn't work right
:-(, that not quite right but are pretty busy, but that the impression :-(.


Thanks
Mark.

This is a bug in NSImage with certain BMP files.
Change the file format to something else (PNG comes to mind) and it
should work fine.
(BTW I filed this as rdar://3874072)


On Nov 18, 2004, at 9:40 AM, Mark Thomas wrote:

Hi,
  Does anybody know if we should use NSImage and NSImageView when
dealing
with images ???, or should we use something else (like the Quicktime
object), but documentation and ADC books implies that we should use
them.

I ask as I believed it used QuickTime underneath for it image format
support, but I game to class a millions of colors BMP file, and it
couldn't
draw it all :-(.


  Doing this using with the Preview.app did the same thing, Dropping
it on
the QuickTime player worked fine. If I covered it to thousands of
colors it
worked fine on all.

Any ideas ???.

Thanks
Mark.

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


This email sent to email@hidden





_______________________________________________ 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: 
 >Re: NSImage question (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: Fastest way to push strings to the screen in an NSView?
  • Next by Date: How to manage different display resolutions
  • Previous by thread: Re: NSImage question
  • Next by thread: NSPanel with just a close button & title on title bar?
  • Index(es):
    • Date
    • Thread