Re: NSImageView and CoreData entity creation
Re: NSImageView and CoreData entity creation
- Subject: Re: NSImageView and CoreData entity creation
- From: Eric Friedman <email@hidden>
- Date: Sun, 18 Sep 2005 06:25:59 -0700
On 9/18/05, Chris Hanson <email@hidden> wrote:
> On Sep 17, 2005, at 8:55 AM, Eric Friedman wrote:
> > In my nib, there is master-detail view for Person objects. In the
> > detail area, I have an NSImageView whose data binding is pointed to
> > selection.picture.data.
> >
> > I would like users to be able to drag and drop pictures onto this
> > NSImageView and have that do several things at once: (a) instantiate
> > a Picture; (b) set the selected Person's relationship attribute to
> > point to that instance; and (c) store the dropped image in the
> > Picture's data attribute.
>
> Rather than subclassing a view-layer class, such as NSImageView, I'd
> probably do this kind of work at the model or controller layer.
>
[snip]
>
> Finally, one could always introduce an intermediate controller object
> (not necessarily an NSController) to handle the NSImageView
> associated with a Person's Picture without subclassing NSImageView
> itself.
Could you please explain this one further -- I'm not clear on what you
had in mind.
Thanks,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden