• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Some MVC questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Some MVC questions (From: Brent Gulanowski <email@hidden>)

  • Prev by Date: Re: Re: arrayWithObjects question
  • Next by Date: Re: Error with most basic method (unexplainable reason)
  • Previous by thread: Re: Some MVC questions
  • Next by thread: Re: Some MVC questions
  • Index(es):
    • Date
    • Thread