Re: Subviews
Re: Subviews
- Subject: Re: Subviews
- From: Clark Mueller <email@hidden>
- Date: Fri, 24 Jan 2003 00:27:58 -0700
Mmm, perhaps I should have been more specific. I'd prefer sample code.
The documentation for NSView is not working for me and is not providing
the practical information I need; I'd prefer to see a set of sample
code that puts the concepts into action. What I have dug up myself via
the documentation has gotten me far enough to have a blank white spot
where the view and its subviews are supposed to be... The subviews
themselves are also all being done programatically, and this might be
the problem, but I'm not sure... I have experience with
adding/replacing/positioning subviews that have been laid out with IB,
but when I've done all of the views programatically, it has resulted in
an empty white spot.
As a sidenote, this is something of a continuation of "Table View
Headers Programatically". Following is an excerpt from that thread:
As for arranging things into an NSScrollView with the header view and
so forth, I haven't gotten very far, but it *looks* to me like the
column headers are part of the NSTableColumn; unfortunately, I haven't
figured out how to make them be shown. I can't tell exactly whether IB
then is splitting up and nesting the header cell inside the table
column, or if something else is going on, but I'm pushing ahead slowly
with it. I certainly welcome more suggestions! Perhaps if there's
someone on the IB team at Apple willing to tell me how IB does this.
That is *precisely* the behaviour I seek to mimic, actually. In a very
different context, but my desire is to construct a table view from the
appropriate components, and then have it be draggable in a view. I can
deal with the draggable in a view part, but I haven't figured out how
to properly construct the table yet.
That is what I am trying to do. I'm adding an NSTableView and its
header and corner views as subviews of a superview (all declared
programatically). I don't want them in an NSScrollView, so essentially
what I am doing is laying it out precisely in the way that IB does,
except with a normal NSView rather than an NSScrollView.
Thanks,
Clark
email@hidden
On Friday, January 24, 2003, at 12:06 AM, Rakesh Pandey wrote:
The best place is Cocoa documentation itself.
regards
Rakesh
On Friday, January 24, 2003, at 09:49 AM, Clark Mueller wrote:
[Sorry if this eventually comes through twice, but it didn't go
through the first time...]
Is someone able to point me to a place where I can find information
on how to position an NSView's subviews? I'm not understanding
exactly how this works. When I say position, I don't mean whether
it's on top of or below other subviews, I mean its coordinate
position within the view. Is it the frame I need to be concerning
myself with?
TIA,
Clark Mueller
email@hidden
_______________________________________________
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.
Rakesh Pandey
-----------------------------------------------------------------------
---------
Windows) 98 (n) - 32-bit extensions and graphical shell
for a 16-bit patch to an 8-bit operating system
originally coded for a 4-bit microprocessor
written by a 2-bit company
that can't stand 1 bit of competition.
_______________________________________________
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.
References: | |
| >Re: Subviews (From: Rakesh Pandey <email@hidden>) |