Re: String attributes in the iPhone SDK

2009-12-10 Thread Greg Parker
On Dec 10, 2009, at 3:44 PM, Charlie Dickman wrote: > I use the following code to determine the height and width of a string in the > Snow Leopard version of an app > > NSMutableDictionary *textAttributes = [[[NSMutableDictionary alloc] > init] autorelease]; > [textAttributes setObje

String attributes in the iPhone SDK

2009-12-10 Thread Charlie Dickman
I use the following code to determine the height and width of a string in the Snow Leopard version of an app NSMutableDictionary *textAttributes = [[[NSMutableDictionary alloc] init] autorelease]; [textAttributes setObject: [NSFont fontWithName: @"Garamond Bold" size: 24]