NSPanel
NSPanel
- Subject: NSPanel
- From: Matt Jaffa <email@hidden>
- Date: Wed, 25 Feb 2004 22:41:54 -0700
Hi,
So this is a real easy question and sorry for asking such an easy
question.
I couldn't find this anywhere.
I have a project I created with XCode and IB.
I have a PreferencePane and when they click on a button I want it to
call a popup NSPanel I created also. I have the panel made and
everything, and my File owner object has the NSPanel as an outlet so
that it can open that panel as soon as this button is clicked.
How would I do this?
#import <Cocoa/Cocoa.h>
#import <PreferencePanes/NSPreferencePane.h>
@interface FMPreferencePane : NSPreferencePane
{
IBOutlet id AddTextView;
IBOutlet id BlockTectView;
IBOutlet NSTextField *LicenseTextView;
IBOutlet NSPanel *PopUpLicense; <------ This is the Panel I want
Popped up.
}
- (IBAction)AddAccept:(id)sender; <---------- This is the button
they click on for the button to appear.
- (IBAction)AddBlock:(id)sender;
- (IBAction)Buy:(id)sender;
- (IBAction)EnterLicenseKey:(id)sender;
- (IBAction)Start:(id)sender;
- (IBAction)SubmitLicense:(id)sender;
@end
Thanks,
Matt
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.