• 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
NSPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: NSPanel
      • From: Eric Forget <email@hidden>
  • Prev by Date: Setting scroll position: a nightmare!
  • Next by Date: Re: NSPanel
  • Previous by thread: Setting scroll position: a nightmare!
  • Next by thread: Re: NSPanel
  • Index(es):
    • Date
    • Thread