• 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: NSURLPboardType broken for dropping files in Panther...?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSURLPboardType broken for dropping files in Panther...?
      • From: Kurt Marek <email@hidden>
References: 
 >NSURLPboardType broken for dropping files in Panther...? (From: Rob In der Maur <email@hidden>)
 >Re: NSURLPboardType broken for dropping files in Panther...? (From: Kurt Marek <email@hidden>)

  • Prev by Date: Re: What's the best approach to integrating CVS support into an app?
  • Next by Date: Re: NSURLPboardType broken for dropping files in Panther...?
  • Previous by thread: Re: NSURLPboardType broken for dropping files in Panther...?
  • Next by thread: Re: NSURLPboardType broken for dropping files in Panther...?
  • Index(es):
    • Date
    • Thread