Re: NSPanel
Re: NSPanel
- Subject: Re: NSPanel
- From: Eric Forget <email@hidden>
- Date: Thu, 26 Feb 2004 01:01:40 -0500
>
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
Matt,
That should do the job. However it won't be a sheet or a modal dialog...
- (IBAction)AddAccept:(id)sender
{
[PopUpLicense makeKeyAndOrderFront:self];
}
Eric
___________________________________________________________________
Eric Forget Cafederic
email@hidden <
http://www.cafederic.com/>
Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
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.
References: | |
| >NSPanel (From: Matt Jaffa <email@hidden>) |