Finding default Aqua control indent?
Finding default Aqua control indent?
- Subject: Finding default Aqua control indent?
- From: Matt Gemmell <email@hidden>
- Date: Sun, 22 Jun 2003 20:16:42 +0100
Hi folks,
My application loads its preferences-panes from several bundles. In the
(unlikely) situation of none of those bundles loading successfully, I
want to display a message in the Preferences window indicating this. For
reasons which I won't go into, I do still want to show the Prefs window
in this situation, and I also don't want to use a sheet.
What I want to do is to programmatically create an instance of
NSTextField, set its content and appearance as appropriate, and add it
to the window. I can do all that with ease. The thing is, I want it to
be positioned "properly" in terms of the default Aqua
control-indentation from the edge of a window; i.e. where the blue lines
in Interface Builder would tell me to put it if I were constructing this
interface beforehand.
I'm reluctant to just check what the indentation value is and hard-code
those values; I'm rather hoping there's a way to programmatically obtain
them from the system. Is this possible?
Cheers,
-Matt
--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.