Re: Loading a NIB
Re: Loading a NIB
- Subject: Re: Loading a NIB
- From: Chris Hanson <email@hidden>
- Date: Fri, 6 Jul 2007 20:49:08 -0700
On Jul 6, 2007, at 8:19 PM, Brian Heibert wrote:
I am new to Xcode as I have said in the past.
How do I get File New to load my nib window
My app loads it by default but if the user closes the first window
and later clicks File New or clicks FIle New and a window is already
there I want to load the nib either way
This is a framework question rather than an Xcode or Interface Builder
question. Please use the appropriate forum for the frameworks you're
targeting.
- If you're using Objective-C and the Cocoa framework, you should ask
on the cocoa-dev list.
- If you're using C/C++ and the Carbon framework, you should ask on
the carbon-dev list.
In Cocoa, you'll probably have an application controller class with an
instance in your nib file. You'll just add an outlet to your
application controller class that points to your window, and add an
action to your application controller class that tells your window to
make itself key and order itself to the front. You'll also have to
ensure your window is set not to release itself upon close. (Basic
use of outlets and actions should be covered in any introductory Cocoa
tutorial.)
-- Chris
_______________________________________________
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