Hi!I am trying to do some nice drawing using CoreAnimation. It all works fine, except for a long series of "CoreAnimation: rendering error 500" messages.
However, as soon as I try to use my window in the context of a modal session, only the background is draw. The actual animated layers are missing.
What am I doing wrong? - (NSUInteger)beginModalWindow:(NSWindow *)modalWindow { NSModalSession currentModalWindowSession;if ([[modalWindow delegate] respondsToSelector:@selector(windowWillBeginModal:)]) {
[[modalWindow delegate] windowWillBeginModal:modalWindow]; } [modalWindow makeKeyAndOrderFront:self];if ([[modalWindow delegate] respondsToSelector:@selector(windowDidBeginModal:)]) {
[[modalWindow delegate] windowDidBeginModal:modalWindow]; }currentModalWindowSession = [NSApp beginModalSessionForWindow:modalWindow];
NSUInteger result = NSOKButton; while(1) {NSInteger response = [NSApp runModalSession:currentModalWindowSession];
if (response == NSRunAbortedResponse) { result = NSCancelButton; } if (response != NSRunContinuesResponse) { break; } } [NSApp endModalSession:currentModalWindowSession];if ([[modalWindow delegate] respondsToSelector:@selector(windowWillEndModal:)]) {
[[modalWindow delegate] windowWillEndModal:modalWindow]; } [modalWindow orderOut:self];if ([[modalWindow delegate] respondsToSelector:@selector(windowDidEndModal:)]) {
[[modalWindow delegate] windowDidEndModal:modalWindow]; } return result; } Best, Pierre Bernard --- Pierre Bernard http://www.bernard-web.com/pierre http://www.houdah.com
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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]