• 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
View system usage with lower left origin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

View system usage with lower left origin


  • Subject: View system usage with lower left origin
  • From: Ron Wagner <email@hidden>
  • Date: Thu, 12 Jun 2003 19:35:29 -0400

Hello,

I am new to Cocoa and have a basic question regarding usage of the view system. I have a window that will contain several similar views which I want to add disclosure triangle controls to, similar to the Apple System Profiler application. Since the origin is at the lower left corner, seems like I can't just set the size of the containing view to just expose the triangle control and the title. The whole origin at the bottom left corner instead of the top left corner seems weird to me since layouts tend to naturally originate from the top and flow downwards.

So how do seasoned cocoa developers handle things like this? Would you set the height of the containing view to a size just exposing the triangle control with title and apply a transformation matrix to the view to move it down into position? I've seen some example applications that have their content stick to the lower left corner when the window is enlarged. How do you get stuff to stick to the top of the window?

Any other general tips or tricks regarding upside down coordinate systems would be appreciated. I realize that it is the postscript/pdf model, but it doesn't seem natural for user interfaces.


Also, is there anything equivalent to the MacApp adorners in Cocoa?

Thanks,

Ron Wagner
_______________________________________________
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.

  • Prev by Date: Re: installer application ?
  • Next by Date: Floating window
  • Previous by thread: Re: The more I read about MVC, the more confused I get...
  • Next by thread: Re: View system usage with lower left origin
  • Index(es):
    • Date
    • Thread