Re: CG related warnings when loading Nib
Re: CG related warnings when loading Nib
- Subject: Re: CG related warnings when loading Nib
- From: David Duncan <email@hidden>
- Date: Thu, 19 Apr 2007 10:38:59 -0700
On Apr 19, 2007, at 4:11 AM, Diederik Hoogenboom wrote:
When launching my app I get the following warnings in the console:
CGContextSetFillColorSpace: invalid context
CGContextSetFillPattern: invalid context
CGContextSetStrokeColorSpace: invalid context
CGContextSetStrokePattern: invalid context
As you can imagine, these are due to either a NULL or bad context,
likely an issue with the current NSGraphicsContext.
CGImageSourceCreateWithData data parameter is nil
CGImageSourceCreateWithData data parameter is nil
These are early bail warnings, so some image that you (or Appkit) is
trying to load is failing.
They come really early in the loading process and my suspicion is
they come from loading the main nib.
If you have any custom code during the early stages of your app
launch, I would try commenting it out (-awakeFromNib, -
applicationWillFinishedLaunching, -applicationDidFinishLaunching,
etc). This sounds like it could also be a memory stomper type issue,
or one where your trying to do something too early in your
application's launching (i.e. before Appkit has setup a graphics
context and other things you'll need).
But aside from the general things, I'm gonna have to call not enough
information =/.
--
David Duncan
Apple DTS Quartz and Printing
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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