• 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: Subviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subviews


  • Subject: Re: Subviews
  • From: Andy Lee <email@hidden>
  • Date: Fri, 24 Jan 2003 10:06:43 -0500

At 12:27 AM -0700 1/24/03, Clark Mueller wrote:
Mmm, perhaps I should have been more specific. I'd prefer sample code. The documentation for NSView is not working for me

Under "Programming Topics" there is a link to a topic called "Drawing and Views": <file:///Developer/Documentation/Cocoa/TasksAndConcepts/ProgrammingTopics/DrawViews/index.html>. The relevant concepts are:

* distinction between a view's frame and its bounds (for positioning purposes, you care about the frame)
* orientation -- which corner of the view is the origin, and whether the view is using a "flipped" coordinate system
* setting autoresize behavior of subviews programmatically (see -setAutoresizingMask:).

Maybe you've already looked there, but I thought I'd mention it just in case.

but when I've done all of the views programatically, it has resulted in an empty white spot.

How about posting the code you are using that doesn't work? The first thing to look for is whether you are passing the right values in your -setFrame: messages.

--Andy
_______________________________________________
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: Clark Mueller <email@hidden>)

  • Prev by Date: Re: Peer To Peer Design
  • Next by Date: Re: Getting Image from Web and Displaying it problem
  • Previous by thread: Re: Subviews
  • Next by thread: Subviews
  • Index(es):
    • Date
    • Thread