Solved. I added this attribute to the dictionary and string NSMutableParagraphStyle *centredStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy]; [centredStyle setAlignment:NSCenterTextAlignment]; (and changed the string to Mutable as well)
On 2013-11-01, at 5:12 PM, Peter Teeson wrote: > OS X Lion 10.7.5, Xcode 4.6.3, Document based app for OS X. The title states > my problem. > NOTE: IB is not used for anything other than a default empty nib. Views etc > are all done programmatically. > The 3 x 3 matrix is displayed with the attributed titles and alternates but > left aligned. > I am unable to change this behaviour > > However if I use the setTitle and setAlternateTitle methods (using strings > instead of attributed strings) everything works. > I had hoped to use italic AlternateTitles hence the code below but which does > not centre align the title in the Cell. > > I'd appreciate any help in telling me where I've misunderstood or coded > badly. Thanks. Peter _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com