• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Finding default Aqua control indent?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Set exit code without using exit() ?
  • Next by Date: Re: Where can I put this code so that it's called when a menu is clicked
  • Previous by thread: Set exit code without using exit() ?
  • Next by thread: Re: Finding default Aqua control indent?
  • Index(es):
    • Date
    • Thread