• 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
Interface Builder Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Interface Builder Problem


  • Subject: Interface Builder Problem
  • From: Lars Sonchocky-Helldorf <email@hidden>
  • Date: Fri, 18 Jan 2002 16:17:48 +0100

Hi,
I am new to the list, so please forgive me if my question has been answered recently.
Now my problem: I am porting a small application (Gomoku.app) from GNUstep to Cocoa. While this app uses "hardcoded" menus under GNUstep, I want to use a nib for the menus. So I created the menus in IB and changed the already existing menu actions from (void) to (IBAction) in the .m file and added IBOutlets to the corresponding header file.
Then I imported that class via Read Files from the Classes Menu into Interface Builder. All IBActions and IBOutlets were recognized properly. Then I tried to Instantiate that class to make the connections between the menu and the class. This was not possible since that menu-item of IB was grayed out. Another class of that project did instantiate without problems. The difference of that two classes is that the first is a subclass of NSWindow and the later of NSObject.
How do I instantiate a class in IB that is not a direct subclass of NSObject?

Thanks in advance, Lars


  • Follow-Ups:
    • Re: Interface Builder Problem
      • From: Henri Lamiraux <email@hidden>
    • Re: Interface Builder Problem
      • From: Christophe Dore <email@hidden>
  • Prev by Date: Re: Newbie Q: How to implement multiple views occupying the same space?
  • Next by Date: Weird (?) behavior of a contextual menu
  • Previous by thread: SGSetDataProc()
  • Next by thread: Re: Interface Builder Problem
  • Index(es):
    • Date
    • Thread