Re: [MacRuby-devel] How do we center label text?

2011-05-26 Thread Shannon Love
UITextAlignmentCenter is for iOS. Anything starting with "UI" is iOS specific. You want NSTextAlignment. On May 26, 2011, at 8:34 PM, az...@gmx.net wrote: > Couple of quick questions I hope someone can help with. > > 1. How do we center text in labels? > > I have a text label, and it is set to

[MacRuby-devel] How do we center label text?

2011-05-26 Thread az...@gmx.net
Couple of quick questions I hope someone can help with. 1. How do we center text in labels? I have a text label, and it is set to blank (text deleted via interface builder) but when the text comes in I'd like it to center, any ideas how to do it? I'm setting my label via self.label.stringValue.