• 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
The iPhone SDK "OpenGL ES Application" template
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The iPhone SDK "OpenGL ES Application" template


  • Subject: The iPhone SDK "OpenGL ES Application" template
  • From: Wilson Chen <email@hidden>
  • Date: Wed, 22 Jul 2009 03:18:36 +1000

Hi all,

For a typical iPhone application, after the application is finished
launching, the app delegate would then

1) create an instance of UIViewController;
2) ask the view controller for its view which the controller creates on
demand;
3) add the view as a subview of the window.

I really like this pattern since it adheres the MVC pattern. However, inside
the "OpenGL ES Application" XCode template, the EAGLView is added directly
to the window in the nib file, leaving the controller out.

My question is: since an EAGLView is a subclass of UIView, is there a
particular reason for the template to not follow the common pattern to
adhere the beloved MVC?

ciao,
wils
_______________________________________________

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: The iPhone SDK "OpenGL ES Application" template
      • From: David Duncan <email@hidden>
    • Re: The iPhone SDK "OpenGL ES Application" template
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Crashes while reordering columns in a NSTableView
  • Next by Date: Re: Crashes while reordering columns in a NSTableView
  • Previous by thread: Re: setFrameSize called multiple times for a single size change?
  • Next by thread: Re: The iPhone SDK "OpenGL ES Application" template
  • Index(es):
    • Date
    • Thread