|
Loading...
|
phoenix-iphone-developer-group@googlegroups.com
[Prev] Thread [Next] | [Prev] Date [Next]
[Pi] Re: quartz errors - <Error>: CGContextSetLineWidth: invalid context Jonas Bush Fri Apr 10 03:02:18 2009
Hrm...I'm fairly certain it needs to be CGRect...and I think it needs to be in a UIView class...all my experience so far has been creating UIViews by hand without using a UIViewController, so I don't know much about those...but I think drawRect is only exposed to a UIView. Jonas On Thu, Apr 2, 2009 at 9:30 PM, Bob <[EMAIL PROTECTED]> wrote: > > > On Apr 2, 8:27 pm, Jonas Bush <[EMAIL PROTECTED]> wrote: > > Hi, > > Any calls like that do have to be inside your drawRect method...which you > > can force to be called (though not predictively) by calling > setNeedsDisplay > > or setNeedsDisplayInRect on your UIView. > > > > Thanks Jonas, that indeed fixed it, however its not calling my method > at all when I say: > > [self.view setNeedsDisplay]; > > My routine is defined as: > - (void) drawRect:(NSRect)rect > > and its inside my UIViewController class. I also tried CGRect as my > 'rect' definition, > no luck. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Phoenix iPhone Developer Group" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/phoenix-iphone-developer-group?hl=en -~----------~----~----~----~------~----~------~--~---
- [Pi] quartz errors - <Error>: CGContextSetLineWidth: invalid context Bob 2009/04/10
- [Pi] Re: quartz errors - <Error>: CGContextSetLineWidth: invalid context Jonas Bush 2009/04/10
- [Pi] Re: quartz errors - <Error>: CGContextSetLineWidth: invalid context Bob 2009/04/10
- [Pi] Re: quartz errors - <Error>: CGContextSetLineWidth: invalid context Jonas Bush 2009/04/10 <=
- [Pi] Re: quartz errors - <Error>: CGContextSetLineWidth: invalid context Bob 2009/04/10
- [Pi] Re: quartz errors - <Error>: CGContextSetLineWidth: invalid context Bob 2009/04/10