Re: CG related warnings when loading Nib
Re: CG related warnings when loading Nib
- Subject: Re: CG related warnings when loading Nib
- From: Diederik Hoogenboom <email@hidden>
- Date: Thu, 19 Apr 2007 22:38:44 +0200
The messages happen before anything in my nib instantiated objects
(II have checked -awakeFromNib, -applicationWillFinishedLaunching, -
applicationDidFinishLaunching, etc).
Diederik
--
Diederik Hoogenboom
Obvious Matter
http://www.obviousmatter.com
On 19-apr-2007, at 19:38, David Duncan wrote:
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