Re: Tweaking a window size [SOLVED]

2008-12-30 Thread Graham Cox
On 31 Dec 2008, at 12:27 am, Michael Ash wrote: Or better yet, have a separate method which generates the needed size, and then call that method both from here and the -windowWillResize: implementation. Yep, I realised this was all I needed to do, so I refactored the code. Easy. thanks,

Re: Tweaking a window size

2008-12-30 Thread Michael Ash
On Tue, Dec 30, 2008 at 1:48 AM, Graham Cox wrote: > One of my windows has a delegate implementing the -windowWillResize:toSize: > method. This forces the window size to be certain whole multiples of rows in > a matrix of icons, the idea being to prevent the user from sizing the window > so that o

Tweaking a window size

2008-12-29 Thread Graham Cox
One of my windows has a delegate implementing the - windowWillResize:toSize: method. This forces the window size to be certain whole multiples of rows in a matrix of icons, the idea being to prevent the user from sizing the window so that only a partial row is visible, which is ugly. It work