Mailing Lists: Apple Mailing Lists

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

Best way to use NSTextList?



I'm trying to use NSTextList in my application, and I'm stumbling on how best to use it. From what I can tell, when a NSTextList is added via the pulldown in the ruler (using the disk option), a series of things happen:

A tab stop 11pts from the left is added
The string "\t{disk}\t" is inserted (where {disk} is a bullet)
The head indent is set to 36
A NSTextList is added to the paragraph style.

If I wanted to create a shortcut in my menu to do this (so the user wouldn't have to bring up the ruler) do I have to perform all these steps myself, or is there some method I'm missing that will do all this for me? And if I have to do this all by hand, what determines the 11pt tab stop, and the 36pt head indent?

thanks,

-gus

--
August 'Gus' Mueller
Flying Meat Inc.
http://flyingmeat.com/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/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.