• 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
Creating subviews programmatically ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating subviews programmatically ?


  • Subject: Creating subviews programmatically ?
  • From: Vince Ackerman <email@hidden>
  • Date: Mon, 26 Nov 2007 08:18:51 -0800

As an Obj C Newbie, I'm having trouble understanding subviews. In a former life I wrote (in C) a Scheduling program that displayed a calendar of one of many possible work schedules for a month in a window. It drew each schedule over a calendar grid straight into a single view.

Being new to Obj C, I was thinking of re-writing this and have each day in the calendar window "know" how to draw itself, the date, and any schedule info for that day. I want to create subviews within the main view for each day in the calendar, and have them remain in a grid and redraw text and graphical info, resizing if the window is re-sized.

Is this possible or would the overhead and drawing time be prohibited? Would I start by adding subviews to the main view , giving each it's own bounds rect, then resize the individual subviews as the main view was re-sized? Is auto sizing taken care of by the main view?

I don't know where to start with this... can anyone give me a few hints on a practical approach?


Thanks in advance


Vince _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Creating subviews programmatically ?
      • From: "I. Savant" <email@hidden>
    • Re: Creating subviews programmatically ?
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Subclassing NSTextFieldCell - can't even get started!
  • Next by Date: Re: Toll Free Bridging and Garbage Collection
  • Previous by thread: Re: Toll Free Bridging and Garbage Collection
  • Next by thread: Re: Creating subviews programmatically ?
  • Index(es):
    • Date
    • Thread