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

Re: CALayer wierdness


  • Subject: Re: CALayer wierdness
  • From: David Blanton <email@hidden>
  • Date: Thu, 12 Feb 2009 23:16:08 -0700


The Simulator is not case sensitive when it comes to file names.

The file name in the project is "Level 1 top.png"  <Capital L>

This code yields a nil provider in the iPhone, ergo no layer contents

imageFileName = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"level 1 top.png"]; <lower case l>
provider = CGDataProviderCreateWithFilename([imageFileName UTF8String]);
_topLayer.contents = (id)CGImageCreateWithPNGDataProvider(provider, NULL, true, kCGRenderingIntentDefault);


Whereas in the iPhone Simulator provider is not nil;



On Feb 12, 2009, at 8:42 PM, Brian Christensen wrote:

On Feb 12, 2009, at 21:23, David Blanton wrote:

I set up a CALayer

	is shows in the iPhone Simulator
	does not show in the iPhone

How can that be?

I doubt anyone can answer your question without seeing relevant code snippets.


/brian




_______________________________________________

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: 
 >CALayer wierdness (From: David Blanton <email@hidden>)
 >Re: CALayer wierdness (From: Brian Christensen <email@hidden>)

  • Prev by Date: Re: memory leak analyzer tools
  • Next by Date: [SOLVED] Re: NSTextView and keyDown: in the responder chain
  • Previous by thread: Re: CALayer wierdness
  • Next by thread: Chnaging icon of running app
  • Index(es):
    • Date
    • Thread