Re: Filename from ImageView/Image?
Re: Filename from ImageView/Image?
- Subject: Re: Filename from ImageView/Image?
- From: Richard Adams <email@hidden>
- Date: Fri, 30 Nov 2001 20:33:04 -0800 (PST)
--- "John C. Randolph" <email@hidden> wrote:
>
>
Have a look at my code for "JCRDragWells". You can
>
find it at
>
stepwise, in the softrak directory.
>
>
As for subclassing NSImageView, why not? It's
>
simple enough to do.
Hmm, I guess I keep reading postings from folks
talking about subclassing not being the right pattern
in a number of circumstances and I over reacted. It's
the right choice in this case - since there is no
workable delegate technique.
So I did just subclass NSImageView and added a
concludeDragOperation: method to it and I can fetch
the filenames using [pboard
propertyListForType:NSFilenamesPboardType]. Works
great.
Thanks for the feedback.
Also, I didn't see JCRDragWells on stepwise anywhere,
but didn't need it...
Richard
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com