Problem with compatibilty with Leopard released ver.

Discussion in 'Mac Programming' started by sudeepdua, Nov 26, 2007.

  1. macrumors newbie

    Nov 26, 2007
    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.
  2. Moderator emeritus


    Jun 15, 2000
    Try disabling your custom window attributes and see if the window gets created normally.

Share This Page