Re: Finding default Aqua control indent?
Re: Finding default Aqua control indent?
- Subject: Re: Finding default Aqua control indent?
- From: Jeff Harrell <email@hidden>
- Date: Sun, 22 Jun 2003 21:36:49 -0500
Wouldn't one of your options be to place each of your panes in an
NSView positioned where you want it? That way you can just add your
failure message to the NSView using the NSView's coordinate system and
not have to worry about where the view is in the window.
(I haven't done this myself. There may be a blindingly obvious reason
why it won't work.)
On Sunday, June 22, 2003, at 02:16 PM, Matt Gemmell wrote:
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.
--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
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.