Re: resizing window containing NSView with CALayer
Re: resizing window containing NSView with CALayer
- Subject: Re: resizing window containing NSView with CALayer
- From: julius <email@hidden>
- Date: Mon, 08 Aug 2011 12:35:33 +0100
On 8 Aug 2011, at 11:23, Graham Cox wrote:
> OK, I downloaded the project (tip: always get rid of the build folder before posting a project - it makes the difference between a 5 MB download and one that's only a few K, which on your server, added up to many minutes).
Sorry about that.
Have replaced them.
>
> Result - it works completely correctly and normally. The view resizes with the window and redraws as expected.
>
> Whatever the problem you're having is, it's not to do with the code itself. Try doing a clean build and trying again.
Then that is truly a mystery.
I've cleaned and rebuilt.
When I go and drag the resize handle to make the window as small as I can make it, i.e. so the window's content rect has zero height then the view misbehaves, i.e. the top of the view shifts from being some 100 pixels below the title bar to being 0 pixels below it!
Amazing.
Must have done something to my machine then: Mac Pro, OS X 10.6.8 XCode 3.2.6
thanks for your efforts
I was going to put a constraint on window size anyway but now that is essential.
best wishes
Julius
http://juliuspaintings.co.uk
_______________________________________________
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