Custom Window fails with 10.5

  • I have a applications 'Popup Dock' that has a custom window, design to
    look like Apples Dock, which now does not work with MAc OS 10.5. I get
    the following exception

    2007-10-31 20:30:18.007 Popup Dock[6233:813] *** Assertion failure in -
    [NSNextStepFrame lockFocus], /SourceCache/AppKit/AppKit-949/
    AppKit.subproj/NSView.m:4751
    2007-10-31 20:30:18.008 Popup Dock[6233:813] -
    [NSNextStepFrame(0x170910) lockFocus] failed with window=0x1928f0,
    windowNumber=3909, [self isHiddenOrHasHiddenAncestor]=0

    This happens as soon as the program starts up without getting to any
    of my code being called within the event loop. I have a subclass of
    NSWindow which calls setContentView: and set as NSView subclass. I
    have tried adding a isHidden method to my content view to see if it is
    called, but it doesn't even get there. I have also tied calling
    setHidden:YES in the init method of both my content view and it's
    subview.

    this is what the backtrace looks like

    #0  0x90900084 in -[NSAssertionHandler
    handleFailureInMethod:object:file:lineNumber:description:] ()
    #1  0x95f586d6 in -[NSView lockFocus] ()
    #2  0x95f57699 in -[NSView
    _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] ()
    #3  0x95e9837d in -[NSView displayIfNeeded] ()
    #4  0x95e97f2d in -[NSWindow displayIfNeeded] ()
    #5  0x95e97d50 in _handleWindowNeedsDisplay ()
    #6  0x92c0f9e2 in __CFRunLoopDoObservers ()
    #7  0x92c10d45 in CFRunLoopRunSpecific ()
    #8  0x92c11d38 in CFRunLoopRunInMode ()
    #9  0x93d958a4 in RunCurrentEventLoopInMode ()
    #10 0x93d955f6 in ReceiveNextEventCommon ()
    #11 0x93d95531 in BlockUntilNextEventMatchingListInMode ()
    #12 0x95e95d5b in _DPSNextEvent ()
    #13 0x95e956a0 in -[NSApplication
    nextEventMatchingMask:untilDate:inMode:dequeue:] ()
    #14 0x95e8e6d1 in -[NSApplication run] ()
    #15 0x95e5b9ba in NSApplicationMain ()
    #16 0x000022b8 in main (argc=1, argv=0xbffff7f8) at /Users/nathan/
    Developer/Projects/Popup Dock 2.1/Popup Dock/main.m:13

    I really should rewrite all of the custom window code, but I want to
    get it going so I have something for users while I do that.
previous month october 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today