On Thu, Mar 24, 2011 at 9:06 PM, Hui Shen <[email protected]> wrote: > Hi > > My Cocoa application meet a problem, a NSWindow display is messed, it seems > the older garbage history display buffer is shown, when I open another > NSWindow(make key and order out). > >From console log I found this message, > > Fri Mar 25 11:35:04 MY_HOST_NAME MY_APP_NAME[36638] <Error>: > kCGErrorInvalidOperation: Cannot merge groups (yet) for wid b7a, otherwid b58
Sounds like you might have messed up the graphics context. Did you properly balance all your calls to -[NSGraphicsContext saveGraphicsState] and CGContextSaveGState with calls to -[NSGraphicsContext restoreGraphicsState] and CGContextRestoreGState, respectively? Does the console log contain anything about CGErrorBreakpoint or "break on this function to debug?" --Kyle Sluder _______________________________________________ Cocoa-dev mailing list ([email protected]) Please 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
