Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sudeepdua

macrumors newbie
Original poster
Nov 26, 2007
5
0
Hi all

I have been facing a tricky problem. I have placed a transparent overlay window (using NSWindow class) over an application icon in the "Dock". This is working fine in the MAC OS X 10.4.11 however when I have tried running the same application in the 10.5 i.e. MAC OS X 10.5 (Leopard), the same window fails. This is happening at the
[super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO] call. I am not able to get what is going wrong. This class is inherited from the NSWindow class.
The error that i am getting is:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error (1002) creating CGSWindow'

Thanks in advance for any help.
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
Try disabling your custom window attributes and see if the window gets created normally.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.