• 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: "I. Savant" <email@hidden>
  • Date: Mon, 7 Nov 2005 10:18:51 -0500


I'm thinking you'll want to read up on NSView here: http:// developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/ ObjC_classic/Classes/NSView.html


You'll also want to check out NSWindow's contentView and setContentView: methods. If you want 'smaller areas', just create and add your 'subviews' to the window's contentView. You'll need to set the original size, position, and autosizing to get it to look right.

With a more detailed description of what you're trying to accomplish, we can give you more detailed responses. For now, you generally need to learn about 'views' (and the concept of subviews/ superviews).

--
I.S.


On Nov 7, 2005, at 10:09 AM, Rory Prior wrote:

Hi,

On 7 Nov 2005, at 2:54 pm, 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 think what he is getting at is why you want to do this programmatically in the first place. It's almost never necessary to programatically create a window, what are you trying to achieve?


Cheers,

Rory
--

ThinkMac Software
http://www.thinkmac.co.uk

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ 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>)
 >Re: programmatic nib (From: Rory Prior <email@hidden>)

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