Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dashboard-like canvas




Anyway, I was wondering if anyone had any knowledge if there was a framework that would allow me to create a Dashboard-like canvas so I can layout my objects on my document-based application. I found MySQL Workbench to be almost what I wanted.

I google-image'd "MySQL Workbench" and see that it looks very much like XCode's data modeler. While not trivial, it's not terribly difficult to do.


You can take a look at the Sketch example code in your Developer folder. That'll get you close, but it uses one view and draws the individual elements into the view. This may be difficult for complicated elements (with lots of little controls, etc.).

If you *are* implementing a more complicated element control (like the data modeler's expanding/contracting list of text fields, etc.), I'd recommend taking a view/subview approach:

Canvas View <---->> Element View (added as subview)

This will be a poor performer, however, if you have "a lot" of subviews. "A lot" depends on complexity of the element subview, etc.

You can also draw the connecting lines in the canvas view, using the element subview's frames to determine the lines' locations.

  I hope this helps / is somewhat clear.

--
I.S.


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Dashboard-like canvas (From: Rick Langschultz <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.