Re: programmatic nib
Re: programmatic nib
- Subject: Re: programmatic nib
- From: Andy Lee <email@hidden>
- Date: Mon, 7 Nov 2005 10:28:18 -0500
On Nov 7, 2005, at 9:54 AM, Alex Reynolds wrote:
On Nov 7, 2005, at 6:36 AM, John C. Randolph wrote:
On Nov 7, 2005, at 2:21 AM, Alex Reynolds wrote:
How does one create one NSWindow that contains smaller areas each
of various types of content?
Read this:
http://www.amazon.com/exec/obidos/tg/detail/-/0321213149/
qid=1131363281/sr=8-1/ref=pd_bbs_1/002-4980735-7208060
I own the first edition of this book. What section should I refer
to create subsections dynamically?
I have the second edition, which has a chapter called "Custom Views"
which contains useful information about the view hierarchy. "[S]
maller areas each of various types of content" is pretty much the
definition of subviews.
I would probably have said do a search for "view hierarchy" in
Xcode's Documentation window (use "Full-Text Search" and make sure
you have the top-level "Reference Library" selected in the left-hand
pane). Then look at the docs for NSView and NSWindow (in particular
init methods and setters for size and position), and also their
superclass NSResponder (for responding to events in a custom way).
Depending on what you're trying to accomplish, the Sketch example
might be helpful; IIRC it does not use subviews for the "smaller
areas," but some other technique, but I might be misremembering.
Again, it depends what you're trying to accomplish. It sounds like
you *might* be trying to recreate what Windows used to call an MDI
interface; please don't, because that's not Mac-like.
--Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden