Connections in Cocoa Document-based application
Connections in Cocoa Document-based application
- Subject: Connections in Cocoa Document-based application
- From: Francis Derive <email@hidden>
- Date: Thu, 10 Mar 2005 15:45:52 +0100
Bonjour !
I am still learning - from Aaron Hillegass 's "Cocoa programming for Mac Os X" book (1st edition).
I run Xcode 1.5 with Mac OS X 10.3.8.
I just create a Cocoa Document-based project.
I open the MyDocument interface file to edit this way :
#import <Cocoa/Cocoa.h>
@interface MyDocument : NSDocument {
IBOutlet NSButton *theButtonOutlet;
}
- (IBAction) theButtonAction:(id)sender;
@end
Then I "ask" Interface Builder to read this file, so as to "register" the outlet and the action.
When I have done this from the MyDocument class selected in "MyDocument.nib" pane/Classes/, its info window ( that is the window titled "MyDocument class info" ) lists the attributes "theButtonOutlet" as an outlet, and the "theButtonAction" as an action.
BUT,
1) Immediately, if I change from the Classes view to the "Instances" view of the "MyDocument.nib" window, and I select "File's Owner" to see the "File's Owner Info" window, there is no outlet and no action as attributes there : seems awkward to me as I understand the File'sOwner is supposed to represent the MyDocument class.
2) Following the listing of the outlet and action as shown above in MyDocument class info window, I want to make these outlet and target connections.
So control-dragging from a selected button (in the NSWindow ) to File'sOwner icon, I get an NSButton info window EMPTY of any target action to connect, and control-dragging from the File'sOwner icon to the button, I get a File'sOwner Info window EMPTY of any outlet to connect with.
I have uninstalled the Developer tools and reinstalled.
I may do it again.
I made the same exercise some long time ago from Aaron's book already, and it did work properly.
So, what could be the problem ?
Merci beaucoup.
Francis.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden