Re: question about frame and bounds
Re: question about frame and bounds
- Subject: Re: question about frame and bounds
- From: mmalcolm crawford <email@hidden>
- Date: Sun, 19 Oct 2003 12:35:34 -0700
On Oct 19, 2003, at 12:00 PM, Ivan Kourtev wrote:
So the separator line (which is an NSBox) has a superview which is NOT
the containing window, correct? What is it?
From the documentation:
<
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSBox.html>
"An NSBox object is a view that draws a line around its rectangular
bounds and that displays a title on or near the line (or might display
neither line nor title). You can adjust the style of the line (bezel,
grooved, or plain) as well as the placement and font of the title. *An
NSBox also has a content view to which other views can be added...*"
See also:
<
http://developer.apple.com/documentation/Cocoa/Conceptual/Box/
index.html>
Moreover, if you add these lines to your code
NSLog(@"%@", [separator class]);
NSLog(@"%@", [[separator superview] class]);
you should get:
2003-10-19 12:18:22.914 Line[439] NSView
2003-10-19 12:18:22.915 Line[439] NSBox
It would seem that in the case of a line (as opposed to a normal
NSBox), the connection is made to the box's content view...
mmalc
_______________________________________________
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.