Re: how to manage two nib files
Re: how to manage two nib files
- Subject: Re: how to manage two nib files
- From: "XiaoGang Li" <email@hidden>
- Date: Mon, 8 Dec 2008 22:40:37 +0800
Thanks. I have read these references, but I still have no idea about my
issue, Maybe I did not understand them completely now, but I am worried that
maybe I have not give a clear expression in my first email. Maybe I need
give a more detailed description:
this application is a utility for my printer, which be launched
by the utility button on the Printer Setup Center. when user click the
utility button, the Mac OS X will launch the linked application. and the
application should first register an apple event, the Mac OS X then will
send the apple event which used to tell my utility the printer model name
and related information about the device. So, before the appliction be
launched, it should get the apple event and check the printer name, then it
will load the nib file dependently. If the printer is a USB printer, it will
load a normal window to interact with user, if it is a Network, it will
launch another application to do other things.
So, I have no idea to design this application. I think this
question maybe can not be implemented by cocoa application template, but I
know that it seems no need to use NSDocument class. Thanks.
2008/12/8 Kiel Gillard <email@hidden>
> <
> http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindowController_Class/Reference/Reference.html
> >
> <
> http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/Concepts/WinControllersAndNibs.html#//apple_ref/doc/uid/20000026
> >
> <http://cocoadevcentral.com/articles/000064.php>
>
> Hope this helps!
>
> On 08/12/2008, at 1:47 PM, XiaoGang Li wrote:
>
> Hi, List,
>>
>> I have a question about how to design my applicaiton in Cocoa.
>>
>> My applicaiton is not a normal application. it is a utility for my
>> printer device. when user double-click the application icon, the
>> application
>> first register an apple event before any UI being shown, he application
>> will
>> receive a apple event from Mac OS later, which tells it that whether the
>> device is USB-connected or Network-connected, when the application get
>> this
>> information, then it will launch the corresponding UI depend on the
>> connect
>> mode. (there are two nib files, one for USB, another for Network.).
>>
>> I have no idea how to manage two nib files, or two window controller.
>> I hope soneone can give me some comments. thanks very much.
>>
>> XiaogangLi
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>>
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden