• 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: Reading from the draggingPasteboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading from the draggingPasteboard


  • Subject: Re: Reading from the draggingPasteboard
  • From: Guy English <email@hidden>
  • Date: Thu, 24 Mar 2005 11:09:13 -0500

Hi,

NSPasteboard *pboard;
pboard = [NSPasteboard pasteboardWithName: NSDragPboard];

Will get you the dragging pasteboard.

I'm not sure this is a great idea though. Your NSImageView subclass
should get the image filenames out and send that array to it's
delegate I'd guess. The method you wrote will only work when there is
a drag in progress.

- (void) copyFilesIntoBundle: (NSArray*) filepaths;

Is just a nicer, more general, method I think in that it doesn't rely
on state from some other part of the app.

Guy
 _______________________________________________
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

References: 
 >Reading from the draggingPasteboard (From: Stefan Reindl <email@hidden>)

  • Prev by Date: Linking against an older version of System frameworks
  • Next by Date: Redirect NSLog()
  • Previous by thread: Reading from the draggingPasteboard
  • Next by thread: Sliding views around
  • Index(es):
    • Date
    • Thread