Re: Proper UTI for accepting files dropped on my table view?
Re: Proper UTI for accepting files dropped on my table view?
- Subject: Re: Proper UTI for accepting files dropped on my table view?
- From: Kyle Sluder <email@hidden>
- Date: Tue, 10 Aug 2010 00:41:15 -0700
On Tue, Aug 10, 2010 at 12:04 AM, Rick Mann <email@hidden> wrote:
> Thanks, Kyle. Wow, the sure made it wordy to use.
It's not really that wordy: [somePasteboard
readObjectsForClasses:[NSArray arrayWithObject:[NSURL class]]
options:[NSDictionary dictionaryWithObject:[NSNumber
numberWithBool:YES] forKey: NSPasteboardURLReadingFileURLsOnlyKey]].
If you find this excessively wordy, Cocoa might not be your favorite
framework. ;-) Anyway, I'd say the mere existence of support for
multiple items in the new API is well worth the slightly increased
verbosity.
Cases like this really scream out for built-in dictionary and array
literal syntax, though. I recall someone has already implemented
something of the sort. Perhaps someone on the list can remind us?
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden