• 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
Connections in Cocoa Document-based application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Connections in Cocoa Document-based application
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Debugger and STL
  • Next by Date: Remote Shark (from CHUD 4.1) doesn't work for me...
  • Previous by thread: Re: Debugger and STL
  • Next by thread: Re: Connections in Cocoa Document-based application
  • Index(es):
    • Date
    • Thread