• 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
There must be a better way
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

There must be a better way


  • Subject: There must be a better way
  • From: Charlie Dickman <email@hidden>
  • Date: Wed, 23 Dec 2009 14:19:07 -0500

In an iPod Touch/iPhone app where the view is in 1 xib and it's controller is in a different one, according to the view-controller-data paradigm, is there a better way to link the view to the controller than

[(myView *) [[self view] setController: self]

in the controller where "controller" has been declared

id controller;
.
.
.
@property (nonatomic, assign) id controller;

in myView.h with

synthesize controller in myView.m?

Charlie Dickman
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

  • Follow-Ups:
    • Re: There must be a better way
      • From: Seth Willits <email@hidden>
    • Re: There must be a better way
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: iPhone: Question in regards to a UIView accessing AppDelegate
  • Next by Date: How to uncheck checkbox in an NSTableView
  • Previous by thread: Re: iPhone: Question in regards to a UIView accessing AppDelegate
  • Next by thread: Re: There must be a better way
  • Index(es):
    • Date
    • Thread