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 <david.geldre...@free.fr > 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to