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

Re: NSBitMapImageRep Woes


  • Subject: Re: NSBitMapImageRep Woes
  • From: Graham Cox <email@hidden>
  • Date: Thu, 7 Jan 2010 13:56:12 +1100

On 07/01/2010, at 4:21 AM, David Blanton wrote:

> 						   bytesPerRow:(4 * m_frameRect.size.width)
> 						   bitsPerPixel:32];


Apart from what others have said, you can pass 0 for these parameters and they get calculated for you. That's usually safest because any inconsistency among the parameters throws an exception.

--Graham


_______________________________________________

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: 
 >NSBitMapImageRep Woes (From: David Blanton <email@hidden>)

  • Prev by Date: iCal-style NSTextFields
  • Next by Date: Re: Problems Fading Out Music
  • Previous by thread: Re: NSBitMapImageRep Woes
  • Next by thread: Commit Editing Changes as I Type
  • Index(es):
    • Date
    • Thread