• 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
Re: [Q] How will the Pasteboard manager be changed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] How will the Pasteboard manager be changed?


  • Subject: Re: [Q] How will the Pasteboard manager be changed?
  • From: Jim Correia <email@hidden>
  • Date: Fri, 19 Dec 2008 19:11:55 -0500

On Dec 19, 2008, at 6:59 PM, JongAm Park wrote:

Although the AppKit supports UTIs, but I couldn't find a way to generate pasteboard type for 'hfs'.
So, probably for this, I think Carbon functions should be used.

I previously offered a solution for this problem. I wrote:

	If you have a four char code that you need to represent as a UTI, you
	can do the conversion using the functions in UTType.h.

These are neither Carbon nor Cocoa functions, but part of the Launch Services framework/API.

Among other things, this API set lets you convert between UTI, filename extension, mime type, four character code, and NSPasteboard type.

UTTypeCreatePreferredIdentifierForTag is where you should start. (But familiarizing yourself with, and understanding, the API in that header will be beneficial if you find yourself needed to convert between UTI and the various tag classes.)

By the way, can the Pasteboard type and NSPasteboard be intermixed like CFStringRef and NSString?

No. They are not toll-free bridged.

Jim
_______________________________________________

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


References: 
 >[Q] How will the Pasteboard manager be changed? (From: JongAm Park <email@hidden>)
 >Re: [Q] How will the Pasteboard manager be changed? (From: Jim Correia <email@hidden>)
 >Re: [Q] How will the Pasteboard manager be changed? (From: JongAm Park <email@hidden>)

  • Prev by Date: Newbie Question: implementing a stack
  • Next by Date: Drawing in a NSView out side of drawRect
  • Previous by thread: Re: [Q] How will the Pasteboard manager be changed?
  • Next by thread: NSTextList - need help
  • Index(es):
    • Date
    • Thread