inspecting return data from NSPasteboard propertyListForType:
inspecting return data from NSPasteboard propertyListForType:
- Subject: inspecting return data from NSPasteboard propertyListForType:
- From: David Alter <email@hidden>
- Date: Mon, 25 Jan 2010 15:05:08 -0800
I have some generic code for when data is dragged into my application. I
wanted to do something like this
id data = [[sender draggingPasteboard] propertyListForType:type];
if ( [NSArray isSubclassOfClass:[data class]] or [NSDictionary
isSubclassOfClass:[data class]]) {
//do a list thing
} else {
//do a single thing
}
What I'm finding is that when the data type is NSCFArray it is not being
identified by [NSArray isSubclassOfClass:. Why is that? Is there something I
can do it identify what the Data type is?
thanks for the help
-dave
_______________________________________________
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