Re: allow user to drag controls to make their own interface?
Re: allow user to drag controls to make their own interface?
- Subject: Re: allow user to drag controls to make their own interface?
- From: John Nowak <email@hidden>
- Date: Thu, 15 Apr 2004 14:38:45 -0400
Thanks for the help. It's possible that I could have the objects appear
via menu so you'd not have to go about dragging from the palette and
such. This could simply things a bit codewise perhaps... Would it be
difficult to allow the user to drag things around (snap to grid sort of
way), and then have a mode so they can use the controls instead of
moving them all over?
Are there any examples of this or something similar currently available?
- John
On Apr 15, 2004, at 2:33 PM, Kay Roepke wrote:
>
>
On 15. Apr 2004, at 19:06 Uhr, John Nowak wrote:
>
>
> Is there anyway I can
>
> hook into the code used in Interface Builder somehow? I don't assume
>
> that the code for it is openly available. Are there classes that could
>
> help me do this without starting from scratch?
>
>
I don't believe you could use any code from Interface builder. OO is
>
great, but well...
>
>
Conceptionally I would say you want to be able to drag and drop views.
>
Not much more.
>
I would start by doing a sample application without much complexity.
>
You probably have to subclass the view classes you want to drag
>
around, to be able to control
>
some of the dragging properties (like what pasteboardtype to use,
>
where to drop the views etc.)
>
>
Try to figure out how to copy your views from the ones provided by
>
your 'palette panel' and connect
>
the necessary datasources to your controller object(s).
>
Maybe the easiest way to do that is to use bindings wherever possible
>
(if you don't mind your users
>
have to use 10.3).
>
>
Just a quick shot, possibly quite unorganized ;-)
>
>
Kay
>
>
www.johnnowak.com
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.