• 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
How to create a Tags selection field in a dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to create a Tags selection field in a dialog


  • Subject: How to create a Tags selection field in a dialog
  • From: Ben Staveley-Taylor <email@hidden>
  • Date: Fri, 28 Feb 2014 18:54:10 +0000

I’m considering making use of the Finder Tags functionality in Mavericks but the APIs seem a little sparse.

I want to create a UI with a field like the Tags: field on the Save As dialog so I can ask the user “Which tags do you want to use on files of this purpose?” This would not be at the point of saving the file, but in an application preference. (My application never opens or saves files; it is a file manager that just moves them around, so I don’t have a Save dialog.)

How can I ask the user to specify a tag, or set of tags, to use?

Ideally I would like to create new Tag string of my own (e.g. “MyApp To Do List”) but I can’t see any tag management API in NSWorkspace. Is it possible to do that, or even to enumerate what Tags are available and what colors they use?

Thanks

— Ben


_______________________________________________

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: How to create a Tags selection field in a dialog
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: NSNumber : method to return pointer to represented value
  • Next by Date: Finder Tags API
  • Previous by thread: Re: NSNumber : method to return pointer to represented value
  • Next by thread: Re: How to create a Tags selection field in a dialog
  • Index(es):
    • Date
    • Thread