• 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: Moving from nib to code with custom controller.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving from nib to code with custom controller.


  • Subject: Re: Moving from nib to code with custom controller.
  • From: Kevin Brock <email@hidden>
  • Date: Wed, 31 Mar 2010 16:16:32 -0700

On Mar 31, 2010, at 8:01 AM, James Cicenia wrote:

> Hello -
>
> I have always used IB before. I added my controller and linked it all up and it worked great.
>
> Now, I have to move this instead to code. I am confused on how to do this.
>
> 1) I have a custom view controller. (FeaturedViewController)
> 2) I have a UIScrollView  (FeaturedScrollView)
> 3) I normally linked it up with IB
> 	scrollView = FeaturedViewController
> 	delegate = FeaturedViewController
> 	view = FeaturedViewController.
>
> SO.. How do I set this up in my init of my master Controller (HomePageController)

Take a look at the ViewController sample, from Apple's web site.  It sounds like you're asking for exactly what it's demoing.

http://developer.apple.com/mac/library/samplecode/ViewController/

Kevin

>
> Thank you very much
> James
>
>
>
>
>
>
>
> _______________________________________________
>
> 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

_______________________________________________

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

References: 
 >Moving from nib to code with custom controller. (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: -[NSOperationQueue cancelAllOperations] cleans queue, but not immediately?!
  • Next by Date: Re: Adding Rows to a Table View
  • Previous by thread: Moving from nib to code with custom controller.
  • Next by thread: NSComboBoxCell menu selection in an NSTableColumn
  • Index(es):
    • Date
    • Thread