• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: NSPanel
  • Next by Date: Re: cocoa-dev digest, Vol 2 #3740 - 21 msgs
  • Previous by thread: NSPanel
  • Next by thread: Re: NSPanel
  • Index(es):
    • Date
    • Thread