Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They’re called token fields. Apple has a guide for them. (Without knowing any more details of your goals, that’s about as precise as I can get.)
Edit
I noticed the edits to your question. You want something that behaves like System Preference’s date panel. Here’s a breakdown of what I imagine is happening:
NSTokenFieldobjects can accept arbitrary objects, as well as strings. So you can drag these objects from the “Time Elements” section onto the token field. The token field’s delegate than handles these non-string objects.The guide linked above contains the information for handling non-string elements in token fields. I imagine all you need to do is create models for the data parts you want to represent, and then render them using a (possibly custom) view.