Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

invalid CGContextRef in custom HIView in PDE



hi,
i have written an application hosted pde to add additional drawing and layout configuration options while printing.  The pde loads correctly, it contains several standard controls (checkboxes and popup buttons) which all work correctly;  however, there is one problem.  i have a custom HIView that wishes to do some custom drawing using CG.  inside the draw event handler, the call to get the CGContextRef is failing with:
                    CGContextRef context;

                    

                    status = GetEventParameter(event, 
                                               kEventParamCGContextRef, 
                                               typeCGContextRef,
                                               NULL, 
                                               sizeof(context),
                                               NULL, 
                                               &context);

                    

-9870 eventParameterNotFoundError


can i use a custom HIView in a pde?  are there any tutorials for this?


regards,


marquis



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Printing mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/printing/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.