Re: getting a new class to appear in Interface Builder
Re: getting a new class to appear in Interface Builder
- Subject: Re: getting a new class to appear in Interface Builder
- From: "Jonathan del Strother" <email@hidden>
- Date: Wed, 9 Apr 2008 11:29:15 +0100
On Wed, Apr 9, 2008 at 11:17 AM, Roland Silver <email@hidden> wrote:
>
>
> In Interface Builder, I've added a File>Run menu item to the mainMenu.nib
> file for my project, and I've added a Controller class to my project itself
> (files Controller.h and Controller.m) having a Controller>runMIAction
> action. What I want to do is connect the Run menu item to that action.
>
> InterfaceBuilder has a File>Read Class Files... and Synchronize With Xcode
> menu items, but after selecting them (with Controller.h selected for Read
> Class Files), I don't see the Controller class being added to the Nib file,
> nor do I see the Controller>runMIAction action in any of the Document Info
> windows for any of File's Owner, First Responder, Application, MainMenu, or
> Window.
>
> How do I get the Controller class to appear in the Nib file, or how
> otherwise do I establish the Run -> runMIAction connection?
>
Try creating a new NSObject from Interface Builder's Library pane,
select the new object, hit ⌘6 to see its Object Identity, and change
the Class Identity from NSObject to Controller. If Interface Builder
has discovered your Controller class, it ought to autocomplete
'Controller' as you're typing it in.
_______________________________________________
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