how do you make NIB connections for class with multiple categories (and their headers)?

2008-06-12 Thread Paul Archibald

my head is hurting

I am trying to understand the NIB/code connection. I have a couple of  
windows in this project, one of which I am working on, the other I  
have been leaving alone. For MyWindow, I have been adding methods in  
my category.h file, and dragging that header to the nib, and linking  
up the controls. That seems to be working okay. The problem is that  
there don't seem to be any connections for the OldWindow. How can  
that be?


a bit later

Oh dang. It looks like I broke the OldWindow while working on  
MyWindow. I am going to have to roll back to a working version.



one of my many questions

This project consists of a AppController class with a bunch of added  
categories, one of which I am trying to implement. So, there are a  
bunch of AppController+ExtraCategory header/source files. I think I  
understand how we synchronize the code and the nib, by dragging the  
header file from the Xcode project to the nib-instance window. But  
what about a project like this, with a bunch of different header  
files, all of which are part of the same controller? Do I select all  
the header files in the Xcode project and drag all of them into the  
nib-instance window? And, when I do that should I merge the  
contents, or replace? I don't wnat to break an existing connection  
by dragging my AppController(MyCategory) header onto the nib-instance  
winodw only to break all the established connections for the other  
categories! (I see I can lock the connections, which I will do, but  
I still want to know how to add the connections of MyCategory without  
stepping on the other ones.


cocoa + objc + ibuilder = lots of questions



___

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 [EMAIL PROTECTED]


Re: how do you make NIB connections for class with multiple categories (and their headers)?

2008-06-12 Thread Jens Alfke


On 12 Jun '08, at 4:43 PM, Paul Archibald wrote:

But what about a project like this, with a bunch of different header  
files, all of which are part of the same controller? Do I select all  
the header files in the Xcode project and drag all of them into the  
nib-instance window? And, when I do that should I merge the  
contents, or replace?


Just drag the header(s) that changed. In this case it's probably safer  
to do a merge than a replace, since I'm not sure how clever IB was  
about header parsing in Tiger.


FYI, this is all a lot more convenient on Leopard. IB 3 now  
automatically notices changes to header files as soon as you save  
them, so the outlets/actions in your nib are always up-to-date.


—Jens

smime.p7s
Description: S/MIME cryptographic signature
___

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 [EMAIL PROTECTED]