Re: Reading from the draggingPasteboard
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