Interface Builder actually makes a couple of windows to do that. One wide window for the horizontal part of the line, and another tall and thin window for the vertical part. The positions of the windows change as your mouse moves, and they have simple views inside that draw basically just blue over their entire contents.

Hope this helps,
        - Greg

On Jul 15, 2008, at 5:31 PM, Andrew Thompson wrote:

How do Interface Builder and Quartz Composer draw the blue line connections
from object to object?
I have been looking through the APIs, but I can't find anything that looks
right.

I thought of just drawing my own line on a custom view (shouldn't be that hard), but interface builder manages to do it between objects that aren't
connected by ANY view, and I am not sure how to do that.

I am trying to build an HTML GUI editor.

Thanks in advance!

~Andrew
_______________________________________________

Cocoa-dev mailing list ([email protected])

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/greg%40omnigroup.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [EMAIL PROTECTED]

Reply via email to