On Tue, Aug 10, 2010 at 12:04 AM, Rick Mann <rm...@latencyzero.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com