On 23/04/2009, at 7:19 AM, Tobias Zimmerman wrote:

(By way of further explanation, the project this arises in involves a set of bezier paths that are generated in one program and archived for use in a separate program. I would like the lineWidth and other drawing specifics such as line/fill colors to be controlled by the view where the reusable
paths are drawn, rather than a property of the paths themselves).


I don't think that's going to work.

My take on what +setDefaultLineWidth: means is that this establishes the value for a path's -lineWidth when it is first created. From that instant on, the path itself has a defined line width, a copy of the default value. If you never set the default I believe it defaults to 1.0.

When you dearchive the paths the line width of each will be whatever is recorded for them, which came from the default on the source machine at the time they were created. Changing the default line width on your machine will have no effect on these values.

If you want to change the line width when the paths are drawn, you'll have to set each one individually prior to drawing.

--Graham


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to