• 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: Interface Builder : moving a controller to File's Owner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interface Builder : moving a controller to File's Owner


  • Subject: Re: Interface Builder : moving a controller to File's Owner
  • From: David Geldreich <email@hidden>
  • Date: Fri, 5 Mar 2010 09:29:18 +0100

Hello Kyle and all cocoa-devers,

Le 5 mars 10 à 00:21, Kyle Sluder a écrit :

On Thu, Mar 4, 2010 at 1:45 PM, David Geldreich <email@hidden > wrote:
I am refactoring one big NIB file into smaller pieces. I copy/paste a
WindowController object and a Window object in a new "empty" NIB.

Window controllers don't belong in nibs. You create them in code and ask them to load a nib, at which point they fill in as File's Owner (unless you use the variant in which you provide a different File's Owner, but you almost never actually want to use that).

That's my problem, I want to create the WindowController in my code and then attach the NIB to it.


When I create my NIB file from scratch, that's what I do. But here, I am refactoring on big NIB file into smaller files to ease the maintenance.

The WindowController and Window (with tons of connections) already exist in a very big NIB. I want to extract the WindowController/Window from this NIB file, keep all the connections and put them in a new NIB file.

When I copy/paste WindowController/Window from my big NIB to the new NIB, I do not know how to "move" all the connections to/from WindowController to the File's Owner "object" ?

For example, if you use the refactoring (File | Decompose Interface) of InterfaceBuilder, you end up having your WindowsController/Window separated from File's Owner.

Regards.

David




_______________________________________________

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: Interface Builder : moving a controller to File's Owner
      • From: "email@hidden" <email@hidden>
References: 
 >Interface Builder : moving a controller to File's Owner (From: David Geldreich <email@hidden>)
 >Re: Interface Builder : moving a controller to File's Owner (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Get my custom object from NSDictionary variable
  • Next by Date: Re: Interface Builder : moving a controller to File's Owner
  • Previous by thread: Re: Interface Builder : moving a controller to File's Owner
  • Next by thread: Re: Interface Builder : moving a controller to File's Owner
  • Index(es):
    • Date
    • Thread