• 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
NSDocument and control of multiple views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDocument and control of multiple views


  • Subject: NSDocument and control of multiple views
  • From: Steve Weller <email@hidden>
  • Date: Sun, 2 Mar 2008 20:15:26 -0800


I have a document-based application that has a custom view that fills much of the content view. In that custom view I want to display a "page" like a piece of paper. As the window is scaled, the "page" scales. This all works either if I code the page as a part of the custom view, or if I set it up as another custom view which is a subview of the larger view.


But which is the better approach? I will want to work at two scales at all times: the scale on the page and the scale on the custom view. Will a subview make that easier?

If I do use a subview, then what should my philosophy be for communicating among objects? I *think* that the NSDocument should manage both views. If the user resizes the window, that will resize the frame of the custom view. That will send a notification to the NSDocument which will make the appropriate changes to both views (scaling, bounds, whatever). Or is there a better way?

_______________________________________________

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


  • Prev by Date: Re: Subview bounds resizing when frame resizes
  • Next by Date: Re: When in the launch cycle does coredata data become available.
  • Previous by thread: Re: When in the launch cycle does coredata data become available.
  • Next by thread: Spotlight importer for records
  • Index(es):
    • Date
    • Thread