Re: Some MVC questions
Re: Some MVC questions
- Subject: Re: Some MVC questions
- From: Koen van der Drift <email@hidden>
- Date: Tue, 23 Jul 2002 20:43:20 -0400
>
The drawing view knows
>
nothing of the meaning of the picture or the tag, only that it has to send
>
a tag when the picture is dragged onto it.
So, when a drop occurs in the view, the view needs to pass the 'tag' to the
controller. I first started looking at using IBAction. But how do I trigger
the view (an NSView) to send an action to the controller? For controls, etc
this is done automatically, but I cannot find anywhere how to do this from
my code. Or should I just make a controller datamember for the view (and
probably the other way around too)?
And a slightly related question. How do I know that the drag started in the
palette? If I drop any string, the drop gets accepted, because the tag is
just a string. How can I make sure that only drags from the palette (or the
same view in another document) are accpeted?
thanks,
- Koen.
_______________________________________________
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.