[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sc-devel] Fwd: [sc-users] UserView relativeOrigin



I checked in this fix for SCUserView - it works for container views so it should work here also.
hjh

Begin forwarded message:

From: James Harkins <jamshark70@xxxxxxxxxxxxxxxxx>
Date: February 10, 2008 11:18:58 AM EST
To: SuperCollider users mailing list <sc-users@xxxxxxxxxxxxxxx>
Subject: Re: [sc-users] UserView relativeOrigin

Looks like SCUserView needs to crib this method from SCContainerView:

init { |argParent, argBounds|
super.init(argParent, argBounds);
// if user changed default relativeOrigin to true,
// the client would be out of sync with the cocoa widget
// without resetting the view property
this.relativeOrigin = relativeOrigin;
}
hjh


On Feb 10, 2008, at 7:08 AM, jostM wrote:

I just noticed that while the instance variable  relativeOrigin of 
userView is set to true by default, it only acts correctly if you 
actually set it to realative origin using the setter.



: H. James Harkins

: jamshark70@xxxxxxxxxxxxxxxxx

: http://www.dewdrop-world.net

.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:


"Come said the Muse,

Sing me a song no poet has yet chanted,

Sing me the universal."  -- Whitman