Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Control the font in a text view



As my first AS project, I have managed to create a little window with a few buttons and a text view that displays the contents of myString when my program executes the following code:

	tell text view 1 of scroll view 1 of window "Lyrics"
		set its contents to myString
	end tell

I would like to display this string in a monospaced font, like Monaco or Courier, for example. Any ideas on how to do this?

I tried...

 in Interface Builder, I...
     selected the Text View
        (or the Scroll View; it doesn't seem to make any difference)
     pulled down from Format to Font to "Show Fonts"
     in the Font floating window that appeared,
        selected "Fixed Width" Courier" "Regular" "12"
     (Here I wasn't sure what to do so I...)
     closed the Font floating window

Then I clicked "Build and Go" and "Save All". In a few seconds, my app launched and myString appeared in the window, but still in the same old proportional font.

Any suggestions?

--Gil

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.