Custom Window fails with 10.5
Custom Window fails with 10.5
- Subject: Custom Window fails with 10.5
- From: Nathan Day <email@hidden>
- Date: Wed, 31 Oct 2007 21:05:00 +1100
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.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden