Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filename from ImageView/Image?



--- "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


References: 
 >Re: Filename from ImageView/Image? (From: "John C. Randolph" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.