• 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: Services Menu in Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Services Menu in Snow Leopard


  • Subject: Re: Services Menu in Snow Leopard
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sat, 5 Sep 2009 16:42:09 +0700


On 5 Sep 2009, at 11:42, Kyle Sluder wrote:

On Sep 4, 2009, at 9:26 PM, "Gerriet M. Denkmann" <email@hidden > wrote:

But, as I said, it IS working for files - only folders don't work.

You need to declare that your service is valid in a UTI context that covers all your needs. Perhaps public.item?

Does not help.

But I discovered another oddity: when I have a string like "open:/usr" and select "/usr" then nothing shows up in the Services Menu. But if the selected path has some white space in front, then it works ok.

My Info.plist now contains:

NSRequiredContext
	NSTextContent = FilePath
NSSendFileTypes
	public.folder
	public.item
	public.symlink
	public.plain-text
	com.apple.alias-file
NSSendTypes
	NSFilenamesPboardType
	NSStringPboardType

and my service is shown in System Preferences → Keyboard → Keyboard Shortcuts correctly under "Files and Folders".

And things which look like files in Finder (e.g. TextEdit.app) when selected show my service in the Services Menu.

But still no real folders.

Kind regards,

Gerriet.

_______________________________________________

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: 
 >Services Menu in Snow Leopard (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Services Menu in Snow Leopard (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: subclassing with conditional method overriding
  • Next by Date: Easy Question re NSWindowController
  • Previous by thread: Re: Services Menu in Snow Leopard
  • Next by thread: Re: Services Menu in Snow Leopard
  • Index(es):
    • Date
    • Thread