XCode Tool related

Discussion in 'Mac Programming' started by satyam90, Oct 3, 2007.

  1. satyam90 macrumors regular

    satyam90

    Joined:
    Jul 30, 2007
    Location:
    Bangalore, India
    #1
    Hi,
    I am using XCode tool for development of a project.
    In that I created a subclass of NSWindowController in the project.
    Now if I see the Inspector->attributes->actions, "showWindow:" is deactivated. How to show now?
    any help?
    Also I want to know is there any online help(full featured) related to XCode tool?

    Regards,
    Satya.
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    I'm not sure why this would happen. Maybe it's a bug in IB? You could try restarting IB. Maybe the connection is invalid?

    Edit: I seem to remember seeing this before, but I can't remember how it happened. It hasn't occurred recently though. Try updating to Xcode 2.4.1 if you haven't already.

    Apple's Xcode 2 User Guide may be useful.
     
  3. Eraserhead macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #3
    Hmm, its greyed out for me too for a custom subclass of NSWindowController in my program (D&D Manager).

    I suggest just creating an IBOutlet (eg IBOutlet NSWindow *window;) to link to the window you want to show and another action method which calls [window makeKeyAndOrderFront:self];, as that'll work, and then let you get on with your project.
     
  4. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    Which nib? I want to figure this out :)
     
  5. Eraserhead macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #5
    In my code its in Battle.nib or GrantXP.nib if you want a less complex nib file.

    However, even though the action is greyed out, it is possible to link to the action in IB from a button, so I assume it'd work once the program was built as well.
     

Share This Page