• 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: NSImageView PICTRepresentation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageView PICTRepresentation?


  • Subject: Re: NSImageView PICTRepresentation?
  • From: George Lawrence Storm <email@hidden>
  • Date: Fri, 8 Oct 2004 15:40:21 -0700

On Oct 8, 2004, at 3:14 PM, Robert Clair wrote:

Based on your response I assume that NSImage will create an instance of NSBitmapImageRep if I feed NSImage a PICT to begin with and will not create one if any other type is feed to it.

Correct if

1) You meant NSPICTImageRep and not NSBitmapImageRep and

Yes, unfortunately (copy_and_paste != think_and_type).

2) You didn't, at some point, lock focus on the image without having done [myImage setDataRetained: YES]

[[self image] setScalesWhenResized:YES]; & [[self image] setDataRetained:YES]; are both set.

If there may or may not be an instance of NSBitmapImageRep at the time of my drag operation I assume I need to search the NSArray returned by -representations: to find if it exists if I am asked to return PICT data on my pasteboard. I also assume I will have to do the same when I declare types for my pasteboard.

But this is backwards - you won't be
asked by provideDataForType: to provide for data for a type that you didn't declare when you
set up the pasteboard.

Actually I was planning on declaring it on my pasteboard's type declaration list if NSPICTImageRep exists.

Based on your explanation if it exists it would only exist if it was the "native" representation of my image, and when possible I want to return the most authentic representation of the original as possible.

-----

George Lawrence Storm
Macintosh Applications Development
Snohomish (Seattle), Washington
E-mail: <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: NSImageView PICTRepresentation? (From: Robert Clair <email@hidden>)
 >Re: NSImageView PICTRepresentation? (From: George Lawrence Storm <email@hidden>)
 >Re: NSImageView PICTRepresentation? (From: Robert Clair <email@hidden>)

  • Prev by Date: Re: open the AddressBook and have a group selected
  • Next by Date: Re: open the AddressBook and have a group selected
  • Previous by thread: Re: NSImageView PICTRepresentation?
  • Next by thread: RE: NSImageView PICTRepresentation?
  • Index(es):
    • Date
    • Thread