Determining the pixel length of a string in Cocoa (MAC OSX)
cocoa, macos, string
Solution
-[NSString sizeWithAttributes:]
Problem
I need to figure out the pixel length of an NSString in Cocoa on OSX and I have found a couple of links that describe how to do this using the IPhone sdk but I didn't see anything about how to do this when not targeting the IPhone. Can anyone link me to some docs that would be relevant. I did find anything in the NSString docs.