• 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: passing argument 1 of 'setContents:' from incompatible pointer type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing argument 1 of 'setContents:' from incompatible pointer type


  • Subject: Re: passing argument 1 of 'setContents:' from incompatible pointer type
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Mon, 9 Feb 2009 01:39:22 -0600

On Mon, Feb 9, 2009 at 1:20 AM, Ken Ferry <email@hidden> wrote:
> On Sun, Feb 8, 2009 at 9:39 PM, Michael Ash <email@hidden> wrote:
>> This really needs a qualifier: NSImage *can* create hidden windows to
>> manage resources. To be more specific, NSImage can create an
>> NSCachedImageRep, which in turn creates NSWindows. The specific
>> circumstances in which this happens are when you draw into an NSImage
>> using lockFocus and the like, and at least sometimes when you draw
>> with the image. Simply creating an NSImage from a file and then
>> extracting one of its representations shouldn't create an
>> NSCachedImageRep.
>
> Drawing an NSImage that is backed by NSBitmapImageRep(s) will also never end
> up creating windows on 10.5, and probably earlier.
>
> -[NSImage lockFocus] is the main thing that will get the windowserver
> involved.

Ahhh... that makes more sense! Thanks for the extra info, guys.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >passing argument 1 of 'setContents:' from incompatible pointer type (From: David Blanton <email@hidden>)
 >Re: passing argument 1 of 'setContents:' from incompatible pointer type (From: "Stephen J. Butler" <email@hidden>)
 >Re: passing argument 1 of 'setContents:' from incompatible pointer type (From: Kyle Sluder <email@hidden>)
 >Re: passing argument 1 of 'setContents:' from incompatible pointer type (From: David Blanton <email@hidden>)
 >Re: passing argument 1 of 'setContents:' from incompatible pointer type (From: "Stephen J. Butler" <email@hidden>)
 >Re: passing argument 1 of 'setContents:' from incompatible pointer type (From: Michael Ash <email@hidden>)
 >Re: passing argument 1 of 'setContents:' from incompatible pointer type (From: Ken Ferry <email@hidden>)

  • Prev by Date: Re: passing argument 1 of 'setContents:' from incompatible pointer type
  • Next by Date: Re: CGFloat and 64 Bit
  • Previous by thread: Re: passing argument 1 of 'setContents:' from incompatible pointer type
  • Next by thread: How do I unit test an object delegate?
  • Index(es):
    • Date
    • Thread