Re: NSURLPboardType broken for dropping files in Panther...?
Re: NSURLPboardType broken for dropping files in Panther...?
- Subject: Re: NSURLPboardType broken for dropping files in Panther...?
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 3 Nov 2003 19:09:36 -0800
On Nov 3, 2003, at 6:10 PM, Kurt Marek wrote:
My problem is that my model class expects data in the NSURL format. My
model is associated with both the NSImageView and an NSTableView. As
records are changed by selecting different rows of the table, the
NSImageView derives its contents from an NSURL instance in the model
via an NSArrayController that is also associated with the tableView.
When I associate an image file with the model using a URL from an
openPanel, the imageView will change whenever a new row is selected in
the table as it should. However, if I drag in an image file using
NSFilenamesPboardType and put it into the NSURL instance variable
using initURLWithString (?--I can't remember the exact method right
now), it works initially, but it fails when the table row selection is
changed.
I'm not sure if this will help:
<
http://homepage.mac.com/mmalc/CocoaExamples/ImageURLDragAndDrop.zip>
I think it was your implementation of the image view for drag and drop
that "confused" me yesterday. This *might* be a better approach...?
mmalc
_______________________________________________
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.