• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Solutions for the shfiting sheet bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Solutions for the shfiting sheet bug?


  • Subject: Re: Solutions for the shfiting sheet bug?
  • From: email@hidden
  • Date: Wed, 5 Mar 2003 21:48:52 +0100

On mercredi, mars 5, 2003, at 06:56 PM, Karl Kraft wrote:

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?

It's a known bug in the sheet code where you can't restrict a sheet to only resize vertically or horizontally. I filed a bug report on this issue 3 or 4 months ago.

This bug is in Mac OS X since 10.1.0 at least.
_______________________________________________
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.

References: 
 >Solutions for the shfiting sheet bug? (From: Karl Kraft <email@hidden>)

  • Prev by Date: Re: Getting information about volumes
  • Next by Date: Re: "Constant" strings are static or autoreleased?
  • Previous by thread: Solutions for the shfiting sheet bug?
  • Next by thread: ControlElements (was re:OutlineView)
  • Index(es):
    • Date
    • Thread