Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Development and Darwin (http://www.mac-forums.com/forums/os-x-development-darwin/)
-   -   Cocoa question (http://www.mac-forums.com/forums/os-x-development-darwin/58783-cocoa-question.html)

Osiris22x 04-08-2007 06:58 PM

Cocoa question
 
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?

xstep 04-09-2007 04:37 AM

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.


All times are GMT -4. The time now is 12:41 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.