• 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
Linking xib's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking xib's


  • Subject: Linking xib's
  • From: Charlie Dickman <email@hidden>
  • Date: Wed, 16 Dec 2009 16:20:41 -0500

I'm developing an iPhone app that has 2 xib's; 1 for the controller and 1 for the main window. This structure is based on that recommended in the "Beginning iPhone Development" book.

When the didReceiveMemoryWarning notification is sent to the controller I want to invoke a method in the main view. This means linking an IBOutlet in the controller (which has its own xib) to a method defined in the view (which has its own xib).

Apparently this CAN NOT be done when the xib's are loaded and must be done in the code itself. In OSX this can be accomplished by telling the NSBundle to load the necessary nib but simply loading an xib in the iPhone OS doesn't resolve the IBOutlet.

Can someone instruct me or direct me to sample code that shows how this is accomplished?

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: Linking xib's
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: NSUndoManager auto-grouping?
  • Next by Date: Distributed Objects communication with a launchd "on-demand" daemon
  • Previous by thread: Re: NSImage support for Windows ico files in 10.4.x?
  • Next by thread: Re: Linking xib's
  • Index(es):
    • Date
    • Thread