NSResponder action messages not being received correctly

2010-07-16 Thread Jon Nall
I have created a tiny project that consists of an NSWindowController subclass which opens its window during the app delegate's applicationDidFinishLaunching: method. There are no custom NSWindow or NSView subclasses. I'm trying to override various NSResponder action messages. Some work, some

Re: NSCoder and CGColorRef

2009-11-05 Thread Jon Nall
I have a helper function that encodes the component float values and then the decoder creates a CGColorRef back from those. +(void)encodeColor:(CGColorRef)theColor withCoder:(NSCoder*)encoder withKey:(NSString*)theKey { if(theColor != nil) { const CGFloat*

Re: Moving from standalone apps to some internet related programming

2009-10-26 Thread Jon Nall
On Oct 26, 2009, at 3:50 PM, Nick Rogers wrote: Hi, In my some 2 yrs of cocoa programming with cocoa, I have been able to make a main app (which is selling) and a few related small apps. Now I have to make a small utility that would download the appropriate (best) version of main app that

kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region

2009-10-25 Thread Jon Nall
Hi. I just joined the mailing list and tried to post this last week, but never saw it show up. I'm trying again. I'm getting the message below printed to the console from my application and hope someone knows what might be going on. When this happens I have a view with an NSProgressIndicator

kCGErrorIllegalArgument: CGSUnionRegionWithRect

2009-10-23 Thread Jon Nall
Hi. I'm getting the message below printed to the console from my application and hope someone knows what might be going on. When this happens I have a view with an NSProgressIndicator which is updating. In my view's drawRect:, I modify the frame of the progress indicator and draw an