Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

satyam90

macrumors regular
Original poster
Jul 30, 2007
242
0
Bangalore, India
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.
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
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?

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.

Also I want to know is there any online help(full featured) related to XCode tool?

Apple's Xcode 2 User Guide may be useful.
 

Eraserhead

macrumors G4
Nov 3, 2005
10,434
12,250
UK
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.
 

Eraserhead

macrumors G4
Nov 3, 2005
10,434
12,250
UK
Which nib? I want to figure this out :)

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.