Cocoa question

Joined
Feb 25, 2004
Messages
475
Reaction score
3
Points
18
Location
Portland, OR
Your Mac's Specs
15" MacBook Pro, 13" MacBook Black, 15" iMac G4, 24" iMac (soon!)
I've been going through the tutorials over at CocoaDev and have come across a little hurdle. Upon reaching step 12 on this page: http://cocoadevcentral.com/d/learn_cocoa_two/

...I have been unable to accomplish what it says should happen. As it shows, 1 Outlet and 1 Action should be showing in the Attributes panel of the inspector, on the AppController. Alas, after following the coding closely, this is not the case. I have 0 Outlets and 0 Actions.

I'm using Xcode 2.2.1.

Any ideas?
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
I looks like at step 10.2 you should have this in your AppController.h file;

@interface AppController : NSObject {
IBOutlet id textView;
}
- (IBAction) clearText: sender;
@end


At step 12 it says you need to drag & drop the AppController.h file in the MainMenu.nib file. You'll see a big blue wavy arrow. The reason for that is so that Interface builder knows about the outlets and actions.

I can't be of much help beyound that. It does look right though.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top