Re: Challenge 2 in Chapter of A. Hillegass's Book
Re: Challenge 2 in Chapter of A. Hillegass's Book
- Subject: Re: Challenge 2 in Chapter of A. Hillegass's Book
- From: "I. Savant" <email@hidden>
- Date: Wed, 2 Nov 2005 08:27:17 -0500
George:
You may find this helpful: http://www.cocoadevcentral.com/articles/
000064.php
--
I.S.
On Nov 2, 2005, at 5:44 AM, George Greene wrote:
hi,
i'm reading "Cocoa Programming For Mac OS X". in chapter 9, the
author ask us to create another nib file for a custom "About" panel.
i need a little help. i created the nib fie, but i don't see how
to connect it or how to have it display itself when the user clicks
on the About Application.
i know i'm missing something.
does the AppController need a AboutController?
does the AppController need a method that would show the About panel?
i tried something like this:
#import <Cocoa/Cocoa.h>
@class PreferenceController;
@class AboutController;
@interface AppController : NSObject{
PreferenceController *preferenceController;
AboutController *aboutController;
}
-(IBAction)showPreferencePanel:(id)sender;
-(IBActon)showAboutPanel:(id)sender;
@end
i saved and then dragged the AppController.h into the
MainMenu.nib. i thought at this point there would be some
connection for me to make, but there was not.
ok, that thought was wrong.
using Interface Builder, i created the new nib, but i don't see any
way to get the response i'm looking for, clicking the About
Application in the Application menu and having it display the
custom About panel.
does AppController need to know about the AboutPanel? i'm lost a
bit, ok a lot.
thanks for any help you can give to get me on the right thought path.
if you can, please, point me to a reference that might help,
another book, apple documentation page, etc.
g.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden