Solutions for the shfiting sheet bug?
Solutions for the shfiting sheet bug?
- Subject: Solutions for the shfiting sheet bug?
- From: Karl Kraft <email@hidden>
- Date: Wed, 5 Mar 2003 09:56:52 -0800
Ive been having lots of sheet related bugs crop up in a project that
Im working on. Reduced to their simplest form they appear to be bugs
in the way that sheets work on OSX. Ive written a minimalist project
that demonstrates one of the bugs, and Ive put a sample application
and screenshots at
http://www.sunstarranch.com/karl/cocoa/SheetBug/
The bug involves users attempting to grow sheets that have a maximum
size set in IB. The code Im using to open the sheet is as simple as
could be.
[NSApp beginSheet:theSheet
modalForWindow:theWindow
modalDelegate:nil
didEndSelector:nil
contextInfo:nil];
[NSApp runModalForWindow: theSheet];
The minimalist app has a button that drops down the sheet.
The sheet pops down and works as expected, except when the user tries
to make the sheet larger than allowed.
As the user drags to the right to increase the width of the sheet, the
sheet shifts left becoming off center.
Eventually the drag results in the sheet being completely disconnected
from the window.
Anyone have any idea whether Im doing something wrong in the line of
code that pops up the sheet? Is there some easy way to stop this?
I also have screen shots of other odd bugs where my users manage to get
the sheet to get a window between the sheet and the window it is
supposed to be attached to. However I haven't gotten these down to a
reproducible case yet.
Thoughts?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.