Calculate height (in pixels) of an NSTextField in Cocoa?

Asked bydaren


Actually the question is, there is a web service, data in NSTextField is dynamically pulled from it. Can a great framework solve my problem?

P.S - if you get the height of the text field, the height of the form should also change. If someone decides, friends respond :)


rachel main
Didn't quite understand the question, but look at
In general, everything is true, yes! But is it small? If the options are easier, I will be grateful! - brian jorgensen
In the sense of a big? - bibliovixen
kelly dasta
Something like this?

NSTextField* textField;


NSRect rect = [textField bounds];

NSLog(@"%@", NSStringFromRect(rect));
OOP syntax in js and using prototype :: Wine, games and open ATI driver? :: How articles from Wikipedia are attached to GoogleMaps :: File manager for linux? :: Chrome and Google Bookmarks
Leave Repply forCalculate height (in pixels) of an NSTextField in Cocoa?
Useful Links