• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: programmatic nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >programmatic nib (From: Alex Reynolds <email@hidden>)
 >Re: programmatic nib (From: "John C. Randolph" <email@hidden>)
 >Re: programmatic nib (From: Alex Reynolds <email@hidden>)

  • Prev by Date: Creating a valid XML header?
  • Next by Date: Re: programmatic nib
  • Previous by thread: Re: programmatic nib
  • Next by thread: Re: programmatic nib
  • Index(es):
    • Date
    • Thread