how to user formatter class?
how to user formatter class?
- Subject: how to user formatter class?
- From: Scott Ruda <email@hidden>
- Date: Tue, 2 Apr 2002 23:16:29 -0800
Does anyone know how to use the 'formatter' class of the Application
Suite in AStudio?
I would like to add a text field that contains an HH:MM{AM|PM} formatted
string and then access the data in it. I can add a text field to a
window and then add a formatter to the text field. When I enter text in
the field it correctly formats the user entry into the expected time
format (I set the custom format string to %I:%M%p). How do I then access
the information? I would prefer to get 'the hour of the text field' or
something like that, but if that is not the way it works, if I could at
least access the string contents of the text field I could parse it
manually. But I get a 'NSReceiverEvaluationScriptError: 3 (1)' error
when trying to get the contents of the field Any ideas?
Thanks,
Scott
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.