Re: Looking for a workaround for a Bug in Cocoa Window
Re: Looking for a workaround for a Bug in Cocoa Window
- Subject: Re: Looking for a workaround for a Bug in Cocoa Window
- From: Andreas Monitzer <email@hidden>
- Date: Wed, 29 Aug 2001 20:47:49 +0200
On Wednesday, August 29, 2001, at 07:49 , Stiphane Sudre wrote:
I have a Window which contains 2 views. One is stuck at the bottom of the
window and can be resized horizontallay. Below it, there is a view which
can be resized both vertically and horizontally.
+---------------------+
| (1) |
+---------------------+
| |
| (2) |
| |
+---------------------+
This window has a window name and some its dimensions and position are
saved.
There seems to be a bug in Cocoa when this window is unarchived. I'm
getting this (the problem also appears sometimes in IB: 50% of time when
I enter the run mode):
+------------------------------------+
| |
| |
+---------------------+ |
| (1) | |
+---------------------+ |
| | |
| (2) | |
| | |
+---------------------+--------------+
This has been a known bug in Cocoa for ages (maybe a bit longer), I first
discovered it in DP4. The only known workaround is to delete the name of
the window (so it won't be saved into user defaults) and do the resizing
manually.
andy
--
Discussion forthcoming.