• 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
inspecting return data from NSPasteboard propertyListForType:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: inspecting return data from NSPasteboard propertyListForType:
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: simple file browser
  • Next by Date: Re: Garbage Collection Docs Puzzle
  • Previous by thread: how to email a message with a NSAttributedString content
  • Next by thread: Re: inspecting return data from NSPasteboard propertyListForType:
  • Index(es):
    • Date
    • Thread