NSDrawer contentView
NSDrawer contentView
- Subject: NSDrawer contentView
- From: Daniel Todd Currie <email@hidden>
- Date: Sun, 4 Jan 2004 19:06:00 -0800
I have the following code:
NSLog(@"content bounds = %@", [[inspectorDrawer contentView] bounds]);
This returns (null). If I try the same thing with "frame" instead of
"bounds", the application crashes on this NSLog.
I have several NSTextFields in this drawer's content view that I would
like to have stretch along with the drawer width (which changes as the
parent window is resized). I set them up as such in IB, but they do
not get drawn correctly and I cannot figure out why. Perhaps it has
something to do with the content view having null bounds and some
freaky value for frame?
Do content views even have legitimate frames/bounds? I've tried this
in a couple of different apps and /Developer/Examples/ and it seems
none of these content views have proper values for these parameters.
Any ideas how I can get my text fields to be drawn/resized correctly?
TIAA,
// Daniel Currie
_______________________________________________
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.