On Thu, Apr 30, 2009 at 11:38 PM, K. Darcy Otto <do...@csusb.edu> wrote:

> Option 2: Moving the text displayed by the NSTableView to the right by some
> way other than inserting spaces.  This might be the best way, alleviating
> the need for a custom field editor and editing the field editor text prior
> to display.  I'm not really sure how to do this though.

So you are inserted spaces into the value to achieve an fixed width indent?

Subclass NSTextFieldCell, and override -titleRectForBounds: to add
your left padding.

- Jim
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to