On 20. Dec 2014, at 22:33, Quincey Morris <quinceymor...@rivergatesoftware.com> wrote:
> On Dec 20, 2014, at 13:50 , H Miersch <hmier...@me.com> wrote: >> >> not sure when layout occurs, but as i say below, that method is called from >> drawrect > > From -[NSView drawRect:]?? You most definitely should not be computing the > view size there, let alone resizing the view or setting constraints. > > I suppose it would be fine to compute a *future* view size there, if that’s > where the calculation logic is, but it’s far too late make the view that size > *this* time. IAC, it would be better to factor out the calculation and do it > somewhere that’s no so far too late. ok, i've taken that method call out of drawrect: and instead i call the method every time one of the parameters changes. and now it works. thanks.
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com