• 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
Xcode and Interface Builder: action and outlets not showing up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode and Interface Builder: action and outlets not showing up


  • Subject: Xcode and Interface Builder: action and outlets not showing up
  • From: "Steve Finkelstein" <email@hidden>
  • Date: Wed, 8 Oct 2008 23:22:25 -0400

Hi all,

I seem to be having an issue with Xcode 3.1 and Interface Builder
3.1.1 in as far as being able to establish a relationship between a
ViewController and a View XIB. As far as a Cocoa Touch Class, I went
forward and added a UIViewController subclass. I made sure that the
target is part of the existing project. Right afterwards I added a
User Interfaces -> View XIB. Within the UIViewController subclass I
have some straight forward code I literally copy/pasted from sample
code elsewhere:

EditViewController.h:

@interface EditorViewController : UIViewController <UITextFieldDelegate> {
    UITextField *field;
}

@property(nonatomic, retain) IBOutlet UITextField *field; /* Outlet
added here, shouldn't Interface Builder recognize this? */
- (IBAction) edit;

@end

EditViewController.m

#import "EditorViewController.h"

@implementation EditorViewController

- (BOOL)shouldAutorotateToInterfaceOrientation:
         (UIInterfaceOrientation)interfaceOrientation {
   // Return YES for supported orientations
  return (interfaceOrientation == UIInterfaceOrientationPortrait);
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


- (void)dealloc {
   [super dealloc];
}


@end

Now when I click my newly created View XIB, I want to list its class
as EditorViewController. Unfortunately it doesn't recognize the class,
typically it would auto complete it for me.  What can I possibly be
overlooking that is not allowing me to do the following:

a) Recognize the class within the same project
b) Not be able to setup association with File's Owners
c) Recognize my 'edit' action in Interface Builder which documentation
mentions should show up as soon as I submit it into Xcode

Thanks so much for your insight,

/sf
 _______________________________________________
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

  • Prev by Date: Re: Conditional warning
  • Next by Date: Re: Strange bug: struct is not a type in C++?
  • Previous by thread: Re: Conditional warning
  • Next by thread: Icons upside down in Interface Builder 2.5.6
  • Index(es):
    • Date
    • Thread